/* Portal Familias · calm, legible, task-first. Solo aplica al rol apoderado. */
.family-body {
  --f-bg: #f8f7f4;
  --f-paper: #fffefc;
  --f-ink: #303331;
  --f-sub: #777b75;
  --f-line: #e9e7e2;
  --f-brand: #86515a;
  --f-brand-dark: #72414a;
  --f-sage: #658278;
  --f-sage-light: #eaf1eb;
  --f-sand: #f4eee3;
  --f-rose: #f6eae9;
  --f-font: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  background: var(--f-bg);
  color: var(--f-ink);
  min-height: 100vh;
  margin: 0;
  font-family: var(--f-font);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.family-body *, .family-body *::before, .family-body *::after { box-sizing: border-box; }
.family-body a { color: inherit; text-decoration: none; }
.family-body button, .family-body select { font: inherit; }
.family-body button, .family-body a, .family-body select { -webkit-tap-highlight-color: transparent; }
.family-body :focus-visible { outline: 3px solid #ba9498; outline-offset: 3px; }
.family-shell { display:flex; min-height:100vh; }
.family-sidebar { position:fixed; z-index:55; inset:0 auto 0 0; width:246px; background:#fbfaf7; border-right:1px solid var(--f-line); display:flex; flex-direction:column; padding:26px 17px 17px; }
.family-brand { display:flex; align-items:center; gap:11px; padding:2px 8px 28px; border-bottom:1px solid var(--f-line); min-width:0; }
.brand-mark { height:40px; width:40px; border-radius:13px; background:var(--f-brand); display:grid; place-items:center; color:white; flex:none; }
.family-brand strong { font-size:14px; font-weight:700; letter-spacing:-.35px; line-height:1.2; display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:150px; }
.family-brand small { color:var(--f-sub); display:block; margin-top:3px; font-size:11px; letter-spacing:.2px; }
.family-sidebar-inner { flex:1; min-height:0; overflow-y:auto; padding-top:23px; }
.sidebar-caption { color:#9a9b93; letter-spacing:1.35px; font-size:10px; font-weight:700; margin:0 0 10px 14px; }
.family-nav { display:flex; flex-direction:column; gap:3px; }
.family-nav-item { min-height:43px; display:flex; align-items:center; gap:13px; border-radius:10px; color:#626661; padding:0 12px; transition:background .15s,color .15s; font-size:13px; font-weight:500; }
.family-nav-item > svg { opacity:.79; flex:none; }
.family-nav-item span { flex:1; }
.family-nav-item:hover { background:#f0efea; color:var(--f-ink); }
.family-nav-item.active { color:var(--f-brand-dark); background:#f2eae7; font-weight:700; }
.family-nav-item.active svg { opacity:1; }
.nav-dot { background:var(--f-brand); color:white; font-size:10px; font-style:normal; font-weight:700; min-width:21px; text-align:center; padding:2px 5px; border-radius:7px; }
.sidebar-divider { height:1px; background:var(--f-line); margin:25px 8px 21px; }
.family-account { display:flex; align-items:center; gap:10px; padding:7px 8px; }
.family-avatar, .topbar-avatar { display:grid; place-items:center; background:#e3e4db; color:#667265; border-radius:50%; font-size:16px; font-weight:700; flex:none; }
.family-avatar { width:36px; height:36px; }
.family-account strong { font-size:12px; font-weight:700; display:block; max-width:149px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.family-account small { display:block; font-size:11px; color:var(--f-sub); margin-top:1px; }
.family-signout { display:flex; align-items:center; gap:11px; margin:0 8px; padding:11px 6px; font-size:12px; color:#72746f!important; border-top:1px solid var(--f-line); }
.family-signout:hover { color:var(--f-brand)!important; }
.family-sidebar-foot { margin:8px 13px 0; font-size:10px; color:#aaa9a2; }
.family-workspace { min-width:0; width:calc(100% - 246px); margin-left:246px; }
.family-topbar { position:sticky; top:0; z-index:30; height:72px; display:flex; align-items:center; justify-content:space-between; padding:0 clamp(24px,3.6vw,52px); background:rgba(248,247,244,.96); border-bottom:1px solid var(--f-line); backdrop-filter:blur(12px); }
.family-topbar-start, .family-topbar-right { display:flex; align-items:center; gap:18px; }
.family-breadcrumb { font-size:13px; color:#969890; }
.family-breadcrumb span { padding:0 9px; color:#c7c6bf; }
.family-breadcrumb b { color:#4e514d; font-weight:600; }
.family-topbar-right { gap:13px; }
.topbar-year { padding-right:12px; border-right:1px solid var(--f-line); font-size:12px; color:#777b75; }
.icon-button { display:grid; place-items:center; border:1px solid #e8e5de; background:#fff; width:36px; height:36px; border-radius:11px; color:#555a55; cursor:pointer; }
.icon-button:hover { background:#f4f1ed; }
.family-notification { position:relative; }
.notification-point { position:absolute; right:6px; top:6px; width:7px; height:7px; border-radius:50%; background:var(--f-brand); border:1.5px solid white; }
.topbar-avatar { width:36px; height:36px; margin-left:4px; }
.family-menu-button { display:none; }
.family-main { max-width:1540px; margin:0 auto; padding:35px clamp(24px,3.6vw,52px) 45px; }
.family-page { max-width:1340px; margin:auto; }
.welcome-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,345px); gap:24px; align-items:center; }
.eyebrow { text-transform:uppercase; letter-spacing:1.6px; font-size:10px; color:var(--f-brand); font-weight:700; }
.welcome-copy h1 { margin:12px 0 7px; font-family:'Newsreader', Georgia, serif; font-size:clamp(34px,3.2vw,43px); font-weight:500; letter-spacing:-1px; line-height:1.08; }
.welcome-copy h1 em { color:var(--f-brand); font-style:normal; }
.welcome-subtitle { color:var(--f-sub); margin:12px 0 0; font-size:13px; }
.child-switcher { min-width:0; display:flex; gap:12px; align-items:center; padding:16px; border:1px solid var(--f-line); background:var(--f-paper); border-radius:14px; box-shadow:0 3px 12px rgba(42,42,35,.018); }
.child-avatar { height:44px; width:44px; border-radius:12px; background:#e8ede7; color:#668074; display:grid; place-items:center; flex:none; }
.child-switcher-text { min-width:0; flex:1; display:flex; flex-direction:column; }
.child-switcher-text > span { color:var(--f-sub); font-size:10px; }
.child-switcher-text > select { color:var(--f-ink); font-weight:700; font-size:13px; min-width:0; width:100%; border:0; background:transparent; outline-offset:1px; cursor:pointer; padding:0 15px 0 0; text-overflow:ellipsis; }
.child-switcher-text small { color:#90928b; font-size:11px; margin-top:2px; }
.child-switcher-text > strong { font-size:12px; }
.switcher-apply { display:none; flex:none; background:transparent; border:1px solid var(--f-line); padding:6px 10px; border-radius:8px; color:var(--f-brand); cursor:pointer; font-size:12px; }
.child-switcher-empty { background:#fefdfb; }
.system-note { margin-top:20px; padding:14px 17px; display:flex; align-items:flex-start; gap:10px; background:#f4efe3; border:1px solid #e7ddc6; border-radius:12px; color:#746043; font-size:12px; }
.system-note strong { display:block; }
.system-note code { font-size:11px; }
.priority-banner { margin-top:24px; border:1px solid #e9dddb; background:#f9f1ef; border-radius:12px; min-height:80px; display:flex; align-items:center; gap:15px; padding:15px 20px; }
.priority-banner:hover { border-color:#dac4c1; background:#f7eae8; }
.priority-banner-icon { width:36px; height:36px; display:grid; place-items:center; border-radius:10px; background:#eddfdc; color:var(--f-brand); flex:none; }
.priority-banner > div { flex:1; min-width:0; }
.priority-banner > div span { color:#9c676c; font-size:10px; letter-spacing:.6px; font-weight:700; display:block; }
.priority-banner > div strong { display:block; font-size:13px; color:#6d4448; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.priority-link { display:flex; gap:7px; align-items:center; color:var(--f-brand); font-size:12px; font-weight:700; white-space:nowrap; }
.insights-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; margin:25px 0 22px; }
.insight { display:flex; align-items:flex-start; gap:16px; min-width:0; padding:18px 20px; min-height:124px; border-radius:14px; border:1px solid var(--f-line); background:var(--f-paper); transition:border-color .15s,transform .15s; }
.insight:hover { border-color:#d7c9c7; transform:translateY(-1px); }
.insight-icon { flex:none; height:43px; width:43px; border-radius:11px; display:grid; place-items:center; }
.insight-icon.sage { color:#5f7f71; background:#e9f0e8; }
.insight-icon.sand { color:#99805b; background:#f3ebdd; }
.insight-icon.rose { color:#a06f76; background:#f3e5e5; }
.insight-copy { display:flex; flex-direction:column; min-width:0; }
.insight-copy small { color:#898e87; letter-spacing:.7px; font-size:10px; font-weight:700; white-space:nowrap; }
.insight-copy strong { font-size:31px; letter-spacing:-.7px; font-weight:600; line-height:1.17; margin:4px 0 3px; }
.insight-copy > span { display:flex; gap:5px; align-items:center; color:var(--f-brand); font-size:11px; font-weight:600; }
.family-two-cols { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.content-panel { background:var(--f-paper); border:1px solid var(--f-line); border-radius:15px; padding:25px 26px; min-width:0; }
.panel-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; min-width:0; margin-bottom:18px; }
.panel-heading h2 { color:var(--f-ink); font-size:19px; font-weight:600; letter-spacing:-.65px; margin:3px 0 0; }
.panel-heading p:not(.panel-eyebrow) { font-size:12px; color:var(--f-sub); margin-top:4px; }
.panel-eyebrow { color:#9b9a8f; letter-spacing:1.25px; font-size:10px; font-weight:700; }
.text-link { color:var(--f-brand)!important; display:inline-flex; align-items:center; gap:5px; white-space:nowrap; font-weight:700; font-size:11px; padding-top:10px; }
.text-link:hover { text-decoration:underline; }
.class-list { margin-top:23px; }
.class-row { display:grid; grid-template-columns:50px 13px minmax(0,1fr) auto; align-items:start; gap:15px; min-height:77px; }
.class-hour { padding-top:0px; display:flex; flex-direction:column; }
.class-hour strong { font-size:13px; font-weight:700; font-variant-numeric:tabular-nums; }
.class-hour small { margin-top:3px; color:#aaa9a2; font-size:11px; font-variant-numeric:tabular-nums; }
.class-line { align-self:stretch; display:flex; justify-content:center; position:relative; }
.class-line::before { content:""; position:absolute; top:10px; bottom:-4px; width:1px; background:#e6e6df; }
.class-line.last::before { display:none; }
.class-line i { margin-top:4px; position:relative; z-index:1; border:3px solid #dfebe3; background:var(--f-sage); width:12px; height:12px; border-radius:50%; }
.class-details { padding-top:0; min-width:0; }
.class-details strong { display:block; font-size:13px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.class-details small { display:block; margin-top:4px; font-size:11px; color:var(--f-sub); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.class-duration { color:#9a9d95; background:#f4f4f0; border:1px solid #eeede7; border-radius:6px; padding:4px 7px; white-space:nowrap; font-size:10px; max-width:90px; overflow:hidden; text-overflow:ellipsis; }
.task-list { margin-top:17px; }
.task-row { display:flex; align-items:center; gap:13px; padding:14px 0; border-bottom:1px solid #efeee9; }
.task-row:last-child { border-bottom:0; padding-bottom:2px; }
.task-row > svg:last-child { color:#b5b5aa; flex:none; }
.task-marker { width:38px; height:38px; border-radius:10px; display:grid; place-items:center; background:#f0ede6; color:#a08e70; flex:none; }
.task-info { flex:1; min-width:0; }
.task-info small { display:block; font-size:10px; font-weight:700; color:#8f938b; }
.task-info strong { margin-top:2px; font-size:12.5px; font-weight:700; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.task-due { margin-top:5px; display:flex; gap:4px; align-items:center; color:#9b967f; font-size:10.5px; }
.task-due.today, .task-due.overdue { color:#a05b60; }
.notices-panel { margin-top:20px; }
.notice-list { display:flex; flex-direction:column; }
.notice-row { display:flex; align-items:center; gap:15px; border-bottom:1px solid #eeede9; padding:15px 0; min-width:0; }
.notice-row:last-child { border-bottom:none; padding-bottom:2px; }
.notice-row > div { flex:1; min-width:0; }
.notice-row > svg:last-child { color:#b5b5aa; flex:none; }
.notice-symbol { width:39px; height:39px; flex:none; display:grid; place-items:center; color:#92968b; background:#f1f2ec; border-radius:10px; }
.notice-row.unread .notice-symbol { color:var(--f-brand); background:#f5e9e9; }
.notice-meta { font-size:10px; color:#8c918a; display:flex; flex-wrap:wrap; gap:7px; align-items:center; }
.notice-row strong { font-size:12.5px; line-height:1.45; font-weight:600; display:block; margin-top:4px; }
.notice-row.unread strong { font-weight:700; }
.tag-unread, .tag-important, .notice-read, .badge-complete, .badge-overdue, .badge-pending { display:inline-flex; align-items:center; gap:3px; white-space:nowrap; font-size:10px; font-weight:700; border-radius:6px; padding:4px 7px; flex:none; }
.tag-unread { color:#92545e; background:#f5e7e7; }
.tag-important { color:#956a4e; background:#f8eee0; }
.notice-read { color:#8c9688; font-size:11px; font-weight:500; }
.home-footer { text-align:center; color:#aaa9a1; padding:21px 0 0; font-size:11px; }
.empty-panel { display:flex; align-items:center; justify-content:center; text-align:center; flex-direction:column; padding:33px 22px 27px; min-height:230px; }
.empty-symbol { height:52px; width:52px; background:#f1f1ec; color:#96a094; border-radius:14px; display:grid; place-items:center; margin-bottom:15px; }
.empty-panel strong { font-size:13px; font-weight:700; }
.empty-panel p { margin:7px auto 0; font-size:12px; max-width:290px; color:#8c918a; line-height:1.65; }
.empty-panel a { color:var(--f-brand)!important; margin-top:15px; display:inline-flex; align-items:center; gap:5px; font-weight:700; font-size:11px; }
.empty-panel.compact { min-height:135px; padding:10px 0; }
.empty-panel.compact .empty-symbol { display:none; }
/* Vistas interiores */
.interior-intro { display:flex; justify-content:space-between; align-items:center; gap:28px; margin-bottom:27px; }
.interior-intro h1, .notice-detail h1 { font-family:'Newsreader', Georgia, serif; color:var(--f-ink); font-size:39px; font-weight:500; line-height:1.1; letter-spacing:-.9px; margin:10px 0 7px; }
.interior-intro > div > p:last-child { color:var(--f-sub); font-size:13px; }
.interior-intro .child-switcher { width:345px; max-width:100%; flex:none; }
.full-panel { min-height:250px; padding:28px; }
.pill-neutral { font-size:11px; background:#f2f1eb; color:#85887e; border-radius:7px; padding:7px 10px; }
.filter-pills { display:flex; gap:5px; padding:3px; background:#f3f2ed; border-radius:10px; }
.filter-pills a { font-size:11px; padding:7px 11px; border-radius:7px; color:#777c75; white-space:nowrap; }
.filter-pills a.selected { background:white; box-shadow:0 2px 5px #292d2610; color:var(--f-brand); font-weight:700; }
.week-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-top:24px; }
.week-day { background:#fafaf8; border:1px solid var(--f-line); border-radius:12px; padding:14px; min-height:205px; }
.week-day.is-today { background:#f6f7f2; border-color:#cbd9d0; }
.week-title { font-size:13px; font-weight:700; display:flex; align-items:center; justify-content:space-between; padding-bottom:12px; }
.week-title span { color:#668172; font-size:10px; background:#e4ede5; padding:2px 6px; border-radius:5px; }
.week-lesson { padding:10px; background:white; border:1px solid #efeee8; border-radius:8px; margin-bottom:8px; }
.week-lesson small { color:#8c9288; font-size:10px; }
.week-lesson strong { display:block; font-size:12px; line-height:1.2; margin:5px 0; }
.week-lesson span { display:block; font-size:10px; color:#949892; }
.week-empty { font-size:11px; line-height:1.6; color:#a0a39b; }
.assignment-list { margin-top:18px; }
.assignment-row { display:flex; align-items:flex-start; gap:15px; border-top:1px solid #f0efeb; padding:18px 0; }
.assignment-row > div:nth-child(2) { flex:1; min-width:0; }
.assignment-row small { font-size:11px; color:#92978e; }
.assignment-row h3 { font-size:14px; font-weight:700; margin:3px 0; }
.assignment-row p { font-size:12px; color:#80857e; max-width:750px; }
.assignment-status { text-align:right; display:flex; flex-direction:column; gap:7px; align-items:flex-end; flex:none; }
.badge-complete { background:#e8f1ea; color:#5b7e68; }
.badge-overdue { background:#f8e8e6; color:#9d5157; }
.badge-pending { background:#f4eee2; color:#957750; }
.subtle-footnote { color:#a0a39b; font-size:11px; margin-top:20px; }
.notice-list-full .notice-row { padding:19px 0; }
.notice-excerpt { font-size:11px; color:#9a9d96; margin-top:4px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.back-link { display:inline-flex; align-items:center; gap:4px; font-size:12px; color:var(--f-brand)!important; margin-bottom:24px; }
.notice-detail { max-width:850px; margin:auto; padding:40px 50px; }
.detail-meta { color:#888d85; font-size:12px; display:flex; gap:10px; align-items:center; }
.notice-detail h1 { max-width:780px; font-size:41px; margin-top:18px; margin-bottom:18px; }
.notice-body { font-size:14px; line-height:1.95; color:#50554f; border-top:1px solid var(--f-line); margin-top:28px; padding-top:28px; overflow-wrap:anywhere; }
.attachment-note { margin:24px 0 0; color:#888b84; font-size:12px; }
.attachment-note a { display:inline-flex; gap:3px; align-items:center; color:var(--f-brand)!important; font-weight:700; }
.detail-actions { display:flex; align-items:center; flex-wrap:wrap; gap:15px; margin-top:34px; padding-top:22px; border-top:1px solid var(--f-line); }
.primary-action { display:inline-flex; gap:8px; align-items:center; border:0; background:var(--f-brand); color:white; border-radius:10px; cursor:pointer; padding:11px 16px; font-size:12px; font-weight:700; }
.primary-action:hover { background:var(--f-brand-dark); }
.secondary-action { font-size:12px; color:#858b81!important; padding:11px; }
.confirmation { display:inline-flex; align-items:center; color:#607f6b; font-size:12px; gap:8px; }
.family-mobile-nav { display:none; }
.family-overlay { display:none; }
@media (max-width:1170px) {
  .family-sidebar { width:220px; }
  .family-workspace { width:calc(100% - 220px); margin-left:220px; }
  .family-main { padding-left:25px; padding-right:25px; }
  .family-topbar { padding:0 25px; }
  .welcome-grid { grid-template-columns:1fr 300px; }
  .insight { padding:17px 14px; gap:11px; }
  .class-row { gap:10px; }
  .class-duration { display:none; }
}
@media (max-width:950px) {
  .family-sidebar { transform:translateX(-102%); box-shadow:8px 0 32px #27291d16; transition:transform .2s; }
  .family-sidebar.open { transform:translateX(0); }
  .family-overlay[hidden] { display:none!important; }
  .family-overlay { display:block; position:fixed; z-index:45; inset:0; background:#1e252766; }
  .family-workspace { width:100%; margin:0; }
  .family-menu-button { display:grid; }
  .welcome-grid { grid-template-columns:1fr 320px; }
  .week-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:720px) {
  .family-topbar { height:62px; padding:0 17px; }
  .family-breadcrumb { font-size:12px; }
  .family-topbar-start { gap:11px; }
  .family-topbar-right { gap:8px; }
  .topbar-year { display:none; }
  .family-main { padding:24px 15px 100px; }
  .welcome-grid { display:flex; flex-direction:column; gap:21px; align-items:stretch; }
  .welcome-copy h1 { font-size:35px; }
  .child-switcher { width:100%; }
  .priority-banner { margin-top:18px; padding:13px; gap:10px; }
  .priority-link { display:none; }
  .insights-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:19px; }
  .insight { min-height:113px; padding:14px 10px; gap:9px; flex-direction:column; }
  .insight-icon { width:32px; height:32px; border-radius:9px; }
  .insight-icon svg { width:19px; height:19px; }
  .insight-copy small { font-size:8px; letter-spacing:.3px; white-space:normal; }
  .insight-copy strong { font-size:26px; }
  .insight-copy > span { display:none; }
  .family-two-cols { grid-template-columns:1fr; gap:14px; }
  .content-panel { padding:21px 18px; }
  .panel-heading h2 { font-size:18px; }
  .class-row { grid-template-columns:52px 13px minmax(0,1fr); }
  .notices-panel { margin-top:14px; }
  .notice-row { gap:10px; }
  .notice-row .tag-unread, .notice-row .notice-read { display:none; }
  .notice-row strong { line-height:1.45; }
  .family-mobile-nav { display:flex; align-items:stretch; position:fixed; z-index:35; bottom:0; left:0; right:0; background:rgba(255,254,252,.98); border-top:1px solid var(--f-line); height:72px; padding:8px 8px max(8px,env(safe-area-inset-bottom)); }
  .family-mobile-nav > a { flex:1; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:4px; color:#92968d; font-size:10px; }
  .family-mobile-nav > a.active { color:var(--f-brand); font-weight:700; }
  .family-mobile-nav > a.active svg { stroke-width:2.1px; }
  .interior-intro { align-items:stretch; flex-direction:column; gap:17px; }
  .interior-intro h1 { font-size:35px; }
  .interior-intro .child-switcher { width:100%; }
  .full-panel { padding:19px 16px; }
  .full-panel > .panel-heading { flex-direction:column; }
  .filter-pills { max-width:100%; }
  .week-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .week-day { padding:10px; min-height:140px; }
  .assignment-row { flex-wrap:wrap; }
  .assignment-status { margin-left:50px; align-items:flex-start; text-align:left; }
  .notice-detail { padding:25px 21px; }
  .notice-detail h1 { font-size:33px; }
}
@media (max-width:370px) {
  .insight { padding:12px 8px; }
  .insight-copy small { font-size:7.5px; }
  .welcome-copy h1 { font-size:32px; }
  .filter-pills a { padding:7px 8px; }
}
@media (prefers-reduced-motion:reduce) {
  .family-body *, .family-body *::before, .family-body *::after { transition:none!important; scroll-behavior:auto!important; }
}

.family-body .sr-only { position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.family-logo-img { width:100%; height:100%; object-fit:contain; background:#fff; border-radius:12px; padding:3px; }

/* ================================================================
   V5 · PORTAL EDUCATIVO INSTITUCIONAL
   Capa de identidad escolar compatible con todas las rutas PHP V4.
   Sin alterar consultas MySQL ni estados de lectura.
   ================================================================ */
.family-body {
  --f-bg:#f6f8f6;
  --f-paper:#fff;
  --f-ink:#26333a;
  --f-sub:#66747a;
  --f-line:#e2e9e6;
  --f-brand:#8d4b55;
  --f-brand-dark:#783943;
  --f-sage:#527d70;
  --f-sage-light:#e8f2ed;
  --f-rose:#f7eae9;
  --f-font:'DM Sans','Segoe UI',system-ui,sans-serif;
  font-size:14px;
  line-height:1.55;
}
.family-body h1,.family-body h2,.family-body h3 { font-family:'Plus Jakarta Sans','DM Sans',sans-serif; }
.family-body .skip-to-content {position:absolute;left:-999px;top:0;z-index:1000;background:#fff;color:#334;padding:10px 14px;border-radius:8px;}
.family-body .skip-to-content:focus {left:12px;top:10px;}
.family-sidebar {width:254px;padding:22px 15px 17px;background:#fbfcfa;box-shadow:3px 0 20px rgba(25,58,44,.015);}
.family-workspace {width:calc(100% - 254px);margin-left:254px;}
.family-brand {gap:12px;padding:3px 7px 21px;align-items:center;border-color:#e7eae5;}
.brand-mark {height:52px;width:48px;border-radius:10px;background:#fff;box-shadow:0 1px 8px #4b5f4812;flex:none;}
.family-logo-img {width:100%;height:100%;padding:3px;border-radius:7px;object-fit:contain;background:transparent;}
.family-brand-copy {display:flex; flex-direction:column; gap:2px;min-width:0;}
.family-brand-copy small {margin:0;font-size:8px;line-height:1.3;letter-spacing:1.1px;color:var(--f-brand);font-weight:800;}
.family-brand-copy strong {max-width:150px;letter-spacing:-.35px;font-weight:800;font-size:15px;line-height:1.23;color:#2b363a;}
.family-brand-copy > span {font-size:11px;color:#718078;}
.academic-chip {display:flex;gap:9px;align-items:center;margin:18px 6px 0;padding:11px 12px;border-radius:11px;background:#edf2ee;color:#576e62;font-size:12px;}
.academic-chip-dot {height:8px;width:8px;background:#6e9c86;border-radius:50%;box-shadow:0 0 0 3px #dae9dd;flex:none;}
.academic-chip strong {color:#416f5b;}
.family-sidebar-inner {padding-top:23px;}
.sidebar-caption {color:#8a9794;font-size:10px;letter-spacing:1.1px;font-weight:800;margin:0 0 11px 13px;}
.family-nav {gap:5px;}
.family-nav-item {padding:0 13px;min-height:46px;color:#52615d;font-size:13px;font-weight:600;border-radius:10px;gap:12px;}
.family-nav-item:hover {background:#eef3ef;color:#294a3e;}
.family-nav-item.active {background:#f5ecea;color:#7d424b;font-weight:800;box-shadow:inset 3px 0 0 #a86670;}
.family-nav-item.active > svg {opacity:1;}
.nav-dot {font-size:10px;border-radius:6px;min-width:21px;padding:2px 5px;background:#97545d;}
.family-account {padding:8px 9px;gap:11px;}
.family-avatar,.topbar-avatar {background:#e4ebe6;color:#486e5b;}
.family-account strong {color:#35433f;font-size:12.5px;max-width:150px;}
.family-account small {font-size:11px;}
.school-mini-card {display:flex;gap:10px;background:#f0f5f1;border:1px solid #e3ece5;border-radius:12px;padding:12px;margin:20px 5px 8px;color:#628374;}
.school-mini-card > span {margin-top:2px;flex:none;}
.school-mini-card p {margin:0;display:flex;flex-direction:column;gap:3px;}
.school-mini-card strong {color:#4e6e61;font-size:11px;font-weight:700;}
.school-mini-card small {color:#75887f;font-size:10px;line-height:1.55;}
.family-signout {font-size:12px;}
.family-topbar {height:77px;background:rgba(255,255,255,.93);border-bottom-color:#e5ebe7;padding:0 clamp(24px,3vw,48px);}
.family-topbar-title {display:flex;flex-direction:column;gap:2px;line-height:1.3;}
.family-topbar-title > span {color:#8b9b96;font-weight:800;letter-spacing:1.1px;font-size:9px;}
.family-topbar-title > strong {font-family:'Plus Jakarta Sans',sans-serif;color:#33463e;font-weight:800;font-size:15px;}
.family-topbar-right {gap:14px;}
.topbar-year {font-size:11px;color:#829087;padding-right:18px;}
.topbar-year strong {display:block;font-size:13px;color:#41584c;text-align:right;}
.topbar-avatar {height:38px;width:38px;}
.icon-button {border:1px solid #e2e9e5;border-radius:11px;color:#567366;}
.notification-point {height:9px;width:9px;right:4px;top:4px;}
.family-main {max-width:1510px;padding:29px clamp(24px,3vw,48px) 48px;}
.family-page {max-width:1370px;}
.school-welcome {background:linear-gradient(115deg,#eff5ef 0%,#f7f7ef 62%,#f6f2ed 100%);border:1px solid #dfeae1;border-radius:19px;padding:26px 28px;position:relative;overflow:hidden;}
.school-welcome::after {content:'';position:absolute;width:178px;height:178px;right:20%;top:-140px;border-radius:50%;border:28px solid rgba(122,155,131,.075);pointer-events:none;}
.welcome-grid {grid-template-columns:minmax(0,1fr) minmax(285px,350px);gap:20px;align-items:center;position:relative;z-index:1;}
.welcome-copy {min-width:0;}
.eyebrow {display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:10px;letter-spacing:1.15px;color:#56776a;font-weight:800;margin:0;}
.eyebrow-mark {display:inline-flex;align-items:center;justify-content:center;color:#6f8e7c;}
.eyebrow-separator {color:#b0bdb0;}
.welcome-copy h1 {font-family:'Plus Jakarta Sans','DM Sans',sans-serif;font-size:clamp(26px,2.75vw,36px);font-weight:800;line-height:1.2;letter-spacing:-1.3px;margin:12px 0 9px;color:#2f3f39;}
.welcome-copy h1 span {color:#8a4d56;}
.welcome-subtitle {font-size:13px;color:#5b7167;line-height:1.6;margin:0;max-width:540px;}
.hero-signature {display:inline-flex;align-items:center;gap:9px;color:#738579;font-size:11px;margin-top:18px;font-weight:600;}
.hero-signature svg {color:#8a6c68;}
.child-switcher {border-color:#d9e4df;border-radius:13px;padding:16px;background:#fff;box-shadow:0 8px 22px rgba(35,62,45,.045);}
.child-avatar {height:52px;width:52px;border-radius:13px;background:#e6f0e9;color:#507e69;}
.child-switcher-text > span {font-size:9px;letter-spacing:.7px;font-weight:800;color:#8b9b90;}
.child-switcher-text > select {font-size:13px;font-weight:800;line-height:1.5;color:#30433a;padding-top:3px;}
.child-switcher-text small {color:#72877a;font-size:11px;}
.overview-heading {display:flex;align-items:end;justify-content:space-between;gap:16px;margin:27px 0 16px;}
.section-overline {display:block;font-size:10px;letter-spacing:1.1px;font-weight:800;color:#9a5961;margin-bottom:6px;}
.overview-heading h2 {font-weight:800;font-size:19px;color:#2a3933;letter-spacing:-.45px;margin:0;}
.overview-date {display:inline-flex;align-items:center;gap:6px;color:#7b8d84;font-size:11px;white-space:nowrap;padding-bottom:2px;}
.priority-banner {margin:0 0 13px;min-height:72px;background:#fff8f5;border:1px solid #efdeda;border-left:3px solid #a9626d;padding:13px 17px;border-radius:12px;}
.priority-banner-icon {background:#f5e9e7;border-radius:9px;color:#944e59;}
.priority-banner > div span {font-size:10px;letter-spacing:.45px;color:#9f646b;}
.priority-banner > div strong {font-size:13px;color:#63454b;}
.priority-link {color:#945660;font-size:11px;}
.insights-grid {margin:0 0 16px;gap:14px;}
.insight {min-height:112px;border-color:#e3e9e5;gap:13px;padding:20px 18px;border-radius:14px;box-shadow:0 2px 7px rgba(31,55,43,.018);position:relative;overflow:hidden;}
.insight::before {content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:#9dbca9;}
.insight-assignments::before {background:#c8a87e;}
.insight-notices::before {background:#c48b93;}
.insight:hover {border-color:#c4d5c8;transform:translateY(-1px);}
.insight-icon {width:44px;height:44px;border-radius:12px;}
.insight-icon.sage {background:#e7f0eb;color:#4f8169;}
.insight-icon.sand {background:#f4ede2;color:#9d794e;}
.insight-icon.rose {background:#f6e8e9;color:#a16a71;}
.insight-copy {justify-content:center;}
.insight-copy small {font-size:9px;letter-spacing:.6px;color:#809088;white-space:normal;font-weight:800;}
.insight-copy strong {display:flex;gap:7px;align-items:baseline;margin:6px 0 2px;font-family:'Plus Jakarta Sans',sans-serif;font-size:28px;font-weight:800;letter-spacing:-.75px;color:#283b33;}
.insight-copy strong span {font-size:12px;letter-spacing:0;font-family:'DM Sans',sans-serif;font-weight:600;color:#708078;}
.insight-copy > span {font-size:11px;color:#876069;}
.class-day-context {display:flex;align-items:center;gap:12px;border-radius:12px;background:#eaf2ed;border:1px solid #dfece3;color:#476955;padding:12px 15px;margin-bottom:20px;font-size:12px;}
.class-day-icon {width:29px;height:29px;border-radius:8px;background:#dceae0;display:grid;place-items:center;flex:none;}
.class-day-context > span:nth-child(2) {min-width:0;flex:1;}
.class-day-context b {font-weight:800;}
.context-muted {color:#648073;}
.class-day-context > a {display:flex;align-items:center;gap:6px;white-space:nowrap;color:#466c59;font-weight:800;font-size:11px;}
.family-two-cols {grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:17px;}
.content-panel {border:1px solid #e1e8e4;border-radius:15px;padding:24px 24px;box-shadow:0 2px 12px rgba(36,56,42,.018);background:#fff;}
.panel-heading {margin-bottom:20px;}
.panel-eyebrow {letter-spacing:.9px;color:#8e686e;font-weight:800;font-size:9px;}
.panel-heading h2 {font-family:'Plus Jakarta Sans',sans-serif;font-weight:800;letter-spacing:-.5px;color:#2b3d35;font-size:17px;margin-top:5px;}
.panel-heading p:not(.panel-eyebrow) {font-size:12px;color:#74847a;}
.text-link {font-size:11px;color:#876068!important;padding-top:3px;}
.class-list {margin-top:12px;}
.class-row {min-height:72px;}
.class-hour strong {color:#364b42;font-size:12px;}
.class-hour small {color:#9aa9a0;}
.class-details strong {font-size:13px;color:#2e4137;}
.class-details small {font-size:11px;color:#7e8c85;}
.class-details strong em {background:#e1f1e6;color:#3d8060;border-radius:4px;padding:2px 5px;font-style:normal;font-size:9px;margin-left:5px;}
.class-row.is-current {background:#f4f9f5;margin:0 -9px;border-radius:7px;padding:0 9px;}
.task-info strong {font-size:13px;color:#33413b;}
.task-info small {color:#858f84;}
.task-due {font-size:10px;}
.notices-panel {margin-top:17px;}
.notice-row {padding-top:15px;padding-bottom:15px;}
.notice-row.unread {background:#fffcfa;}
.notice-row strong {font-size:13px;color:#33413b;}
.notice-row.unread strong {color:#2b3b33;}
.notice-meta {font-size:10.5px;color:#85948a;}
.tag-unread {background:#f8e7e8;color:#98525c;}
.home-footer {font-size:10px;color:#97a39c;padding-top:18px;}
/* Páginas interiores: encabezados académicos, no titulares editoriales. */
.interior-intro h1,.notice-detail h1 {font-family:'Plus Jakarta Sans','DM Sans',sans-serif;font-weight:800;color:#2b4035;font-size:clamp(25px,2.7vw,34px);letter-spacing:-.9px;line-height:1.2;}
.interior-intro .child-switcher {max-width:360px;}
.week-day.is-today {background:#f1f7f2;border-color:#bcd7c7;}
.week-title span {background:#ddecdf;color:#4f745c;}
.week-lesson strong {color:#3b5244;}
.full-panel {border-radius:15px;}
.family-mobile-nav {border-top-color:#dfe9e1;}
.mobile-nav-alert {position:absolute;top:7px;left:calc(50% + 8px);height:6px;width:6px;border-radius:50%;background:#a4515d;}
/* Pequeñas pantallas sin columnas truncadas. */
@media (max-width:1180px) {
  .family-sidebar {width:232px;}
  .family-workspace {margin-left:232px;width:calc(100% - 232px);}
  .family-main {padding-left:24px;padding-right:24px;}
  .family-topbar {padding-left:24px;padding-right:24px;}
  .welcome-grid {grid-template-columns:minmax(0,1fr) minmax(245px,310px);gap:14px;}
  .school-welcome {padding:22px 23px;}
  .insight {padding:16px 14px;gap:10px;}
  .insight-copy strong {font-size:25px;}
  .family-two-cols {grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
}
@media (max-width:950px) {
  .family-sidebar {transform:translateX(-102%);}
  .family-workspace {margin:0;width:100%;}
  .family-menu-button {display:grid;}
  .welcome-grid {grid-template-columns:minmax(0,1fr) minmax(260px,330px);}
}
@media (max-width:740px) {
  .family-topbar {height:65px;padding:0 15px;}
  .family-topbar-title > strong {font-size:13px;}
  .family-topbar-right {gap:9px;}
  .family-main {padding:17px 13px 100px;}
  .school-welcome {padding:20px 18px;border-radius:15px;}
  .welcome-grid {display:flex;flex-direction:column;align-items:stretch;gap:17px;}
  .welcome-copy h1 {font-size:26px;line-height:1.25;margin:10px 0;}
  .welcome-subtitle {font-size:12.5px;}
  .hero-signature {margin-top:12px;}
  .child-switcher {padding:12px;}
  .overview-heading {margin:21px 1px 13px;align-items:start;}
  .overview-heading h2 {font-size:16px;}
  .overview-date {display:none;}
  .priority-banner {margin-bottom:11px;}
  .insights-grid {gap:8px;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:12px;}
  .insight {padding:13px 9px;gap:7px;min-height:119px;flex-direction:column;}
  .insight-icon {width:33px;height:33px;border-radius:9px;}
  .insight-copy small {font-size:8px;line-height:1.35;letter-spacing:.1px;}
  .insight-copy strong {font-size:23px;gap:4px;margin-top:6px;}
  .insight-copy strong span {font-size:10px;line-height:1.2;}
  .insight-copy > span {display:none;}
  .class-day-context {gap:9px;padding:11px 12px;font-size:11px;align-items:flex-start;}
  .class-day-context > a {display:none;}
  .family-two-cols {grid-template-columns:1fr;gap:13px;}
  .content-panel {padding:20px 17px;}
  .panel-heading h2 {font-size:17px;}
  .notices-panel {margin-top:13px;}
  .family-mobile-nav {height:73px;padding-bottom:max(8px,env(safe-area-inset-bottom));}
  .family-mobile-nav > a {position:relative;}
  .interior-intro .child-switcher {max-width:none;}
}
@media (max-width:380px) {
  .eyebrow {font-size:9px;}
  .welcome-copy h1 {font-size:23px;}
  .insight-copy strong {font-size:21px;}
  .insight-copy strong span {font-size:9px;}
  .family-topbar-title > span {font-size:8px;}
}
