/* SmartKid · Portal de tutores (app: barra propia, pestañas, avatar con menú) */
body { background: #F5F7FA; }
.pt { min-height: 100vh; }
.pt-bar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.pt-bar-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 24px; }
.pt-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: var(--ink); white-space: nowrap; }
.pt-brand-sub { font-weight: 400; color: var(--muted); }
.pt-tabs { display: flex; gap: 4px; margin: 0 auto; height: 100%; }
.pt-tabs a { display: flex; align-items: center; gap: 8px; padding: 0 16px; color: var(--muted); font-size: 15px; border-bottom: 2px solid transparent; }
.pt-tabs a:hover { color: var(--ink); }
.pt-tabs a[aria-current="page"] { color: var(--ink); font-weight: 500; border-bottom-color: var(--ink); }
.pt-tabs svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pt-me { position: relative; }
.pt-me-btn { display: flex; align-items: center; gap: 4px; background: none; border: 0; padding: 4px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.pt-me-btn:hover { background: #EEF1F5; }
.pt-caret { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.pt-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(20,37,74,.14); padding: 8px; }
.pt-menu-head { display: flex; gap: 12px; align-items: center; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.pt-menu-head div { display: flex; flex-direction: column; min-width: 0; }
.pt-menu-head .small { overflow: hidden; text-overflow: ellipsis; }
.pt-menu a, .pt-menu button { display: block; width: 100%; text-align: left; padding: 10px 10px; border-radius: 8px; font: 15px var(--font); color: var(--ink); background: none; border: 0; cursor: pointer; }
.pt-menu a:hover, .pt-menu button:hover { background: #F2F4F8; }
.pt-menu button { color: #A12C2C; }

/* Avatares */
.pt-av { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #E8EEF7 center / cover no-repeat; color: #1F3A68; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.pt-av.lg { width: 48px; height: 48px; font-size: 17px; }
.pt-av.xl { width: 64px; height: 64px; font-size: 22px; box-shadow: 0 0 0 4px #fff; }
.pt-av.xxl { width: 112px; height: 112px; font-size: 36px; }

/* Contenido */
.pt-main { max-width: 1120px; margin: 0 auto; padding: 28px 20px 96px; }
.pt-loading { padding: 40px 0; }
.pt-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.pt-card + .pt-card, .pt-grid3 + .pt-card { margin-top: 16px; }
.pt-empty { max-width: 520px; margin: 40px auto; }
.pt-empty h1 { font-size: 24px; }
.pt-title { font-size: 26px; margin: 0 0 18px; }
.pt-h { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.pt-card-head { display: flex; justify-content: space-between; align-items: baseline; }
.pt-more { font-size: 14px; color: var(--muted); }
.pt-more:hover { color: var(--ink); }
.m0 { margin: 0; }

.pt-hello { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.pt-hello h1 { font-size: clamp(24px, 3.4vw, 30px); margin: 2px 0 0; }
.pt-hello p::first-letter { text-transform: uppercase; }
.pt-alerts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.pt-alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; background: #EEF3FB; color: #1F3A68; }
.pt-alert.warn { background: #FFF4E0; color: #7A4B00; }
.pt-alert a { font-weight: 500; text-decoration: underline; }
.pt-grid3 { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; }
.pt-next { background: #14254A; color: #fff; border-color: #14254A; }
.pt-next .pt-h, .pt-next .muted { color: rgba(255,255,255,.72); }
.pt-next-in { display: flex; gap: 16px; align-items: center; }
.pt-next-in p { margin: 0; }
.pt-next-time { font-size: 22px; font-weight: 600; }
.pt-date { width: 64px; flex: none; text-align: center; background: rgba(255,255,255,.1); border-radius: 12px; padding: 8px 0; display: flex; flex-direction: column; text-transform: capitalize; font-size: 12px; }
.pt-date strong { font-size: 26px; line-height: 1.1; }
.pt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.pt-stats div { display: flex; flex-direction: column; }
.pt-stats strong { font-size: 20px; }
.pt-stats span { font-size: 12px; color: var(--muted); }
.pt-mini-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.pt-mini { display: flex; gap: 10px; align-items: center; }
.pt-mini div { display: flex; flex-direction: column; }
.pt-feed { display: flex; flex-direction: column; }
.pt-feed-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.pt-feed-item:first-child { border-top: 0; }
.pt-feed-when { width: 64px; flex: none; display: flex; flex-direction: column; font-size: 13px; text-transform: capitalize; }
.pt-feed-when span { color: var(--muted); }
.pt-feed-what { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pt-pill { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: #EEF1F5; color: #44506A; white-space: nowrap; }
.pt-pill.realizada { background: #E2F3E6; color: #1E6B3A; }
.pt-pill.agendada { background: #E8EEF7; color: #1F3A68; }
.pt-pill.cancelada { background: #F6E4E4; color: #A12C2C; }
.pt-pill.reagendada { background: #EFEAFB; color: #4B2E83; }
.pt-pill.pendiente { background: #FFF4E0; color: #7A4B00; }
.pt-wa { background: #F0FAF3; border-color: #CDEBD6; }

/* Alumnos */
.pt-students { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pt-student-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.pt-student-head h2 { font-size: 18px; margin: 0; }
.pt-student-head p { margin: 2px 0 0; }
.pt-student-head .pt-pill { margin-left: auto; }
.pt-dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0 0 8px; font-size: 14px; }
.pt-dl dt { color: var(--muted); }
.pt-dl dd { margin: 0; }
.pt-dl dd::first-letter { text-transform: uppercase; }

.pt-students.one { display: block; }
.pt-student .btn { margin-top: 6px; }
.pt-ficha { max-width: 760px; }
.pt-back { background: none; border: 0; padding: 0 0 12px; font: 15px var(--font); color: var(--muted); cursor: pointer; }
.pt-back:hover { color: var(--ink); }
.pt-ficha textarea { width: 100%; min-height: 96px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; font: 15px var(--font); resize: vertical; }
.pt-nota-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.pt-timeline { display: flex; flex-direction: column; margin-top: 8px; }
.pt-tl-item { display: flex; gap: 14px; position: relative; padding: 0 0 18px; }
.pt-tl-item::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.pt-tl-item:last-child::before { display: none; }
.pt-tl-dot { width: 12px; height: 12px; border-radius: 50%; background: #1F3A68; margin-top: 4px; flex: none; position: relative; }
.pt-tl-item.nota .pt-tl-dot { background: #C47F00; }
.pt-tl-item p { margin: 0 0 4px; font-size: 15px; }
.pt-tl-when { font-size: 13px !important; color: var(--muted); }
.pt-tl-k { display: inline-block; font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 8px; text-transform: uppercase; letter-spacing: .02em; }

/* Calendario */
.pt-cal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.pt-cal-head .pt-title { margin: 0; }
.pt-cal-nav { display: flex; gap: 8px; align-items: center; }
.pt-icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pt-icon-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; }
.pt-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.pt-day { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-height: 160px; display: flex; flex-direction: column; gap: 6px; }
.pt-day.today { border-color: #14254A; box-shadow: inset 0 0 0 1px #14254A; }
.pt-day-h { display: flex; flex-direction: column; text-transform: capitalize; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.pt-day-h strong { font-size: 20px; color: var(--ink); }
.pt-day.today .pt-day-h strong { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: #14254A; color: #fff; align-items: center; justify-content: center; font-size: 16px; }
.pt-day-empty { color: #C2C8D2; margin: 0; }
.pt-ev { font-size: 13px; border-radius: 8px; padding: 6px 8px; border-left: 3px solid #1F3A68; background: #E8EEF7; }
.pt-ev span { display: block; font-size: 11px; color: #44506A; }
.pt-ev.realizada { background: #E2F3E6; border-color: #1E6B3A; }
.pt-ev.cancelada { background: #F6E4E4; border-color: #A12C2C; text-decoration: line-through; opacity: .8; }
.pt-ev.cancelada span { text-decoration: none; }
.pt-ev.reagendada { background: #EFEAFB; border-color: #4B2E83; }
.pt-ev.pendiente { background: #FFF4E0; border-color: #C47F00; }
.pt-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 12px 0 16px; }
.pt-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.dot.agendada { background: #1F3A68; } .dot.realizada { background: #1E6B3A; } .dot.cancelada { background: #A12C2C; } .dot.reagendada { background: #4B2E83; }
.pt-sync-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* Perfil */
.pt-profile { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.pt-preview { position: sticky; top: 84px; text-align: center; }
.pt-tcard { border: 1px solid var(--line); border-radius: 16px; padding: 24px 16px; margin: 10px 0 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pt-tcard h2 { font-size: 20px; margin: 8px 0 0; }
.pt-tcard p { margin: 0; }
.pt-quote { font-size: 15px; font-style: italic; margin-top: 6px !important; }
.pt-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.pt-tags span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: #EEF1F5; }
.pt-profile form .pt-h { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.pt-profile form .pt-h:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.ok-msg { color: #1E6B3A; min-height: 20px; }

.pt-toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); background: #14254A; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 50; box-shadow: 0 8px 24px rgba(20,37,74,.25); }

/* Celular: pestañas abajo, como una app */
@media (max-width: 860px) {
  .pt-grid3 { grid-template-columns: 1fr; }
  .pt-profile { grid-template-columns: 1fr; }
  .pt-preview { position: static; }
  .pt-week { grid-template-columns: 1fr; }
  .pt-day { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .pt-day-h { width: 52px; flex: none; }
  .pt-day .pt-ev { flex: 1 1 200px; }
  .pt-day.sun { display: none; }
}
@media (max-width: 760px) {
  /* el desenfoque convierte la barra en contenedor de lo "fixed": se quita para que las pestañas vayan abajo */
  .pt-bar { backdrop-filter: none; background: #fff; }
  .pt-bar-in { height: 56px; padding: 0 14px; }
  .pt-tabs { position: fixed; left: 0; right: 0; bottom: 0; height: 64px; margin: 0; background: #fff; border-top: 1px solid var(--line); justify-content: space-around; padding-bottom: env(safe-area-inset-bottom); }
  .pt-tabs a { flex-direction: column; justify-content: center; gap: 3px; padding: 0 2px; font-size: 10.5px; border-bottom: 0; border-top: 2px solid transparent; flex: 1; }
  .pt-tabs a[aria-current="page"] { border-top-color: var(--ink); }
  .pt-me { margin-left: auto; }
  .pt-main { padding: 18px 14px 96px; }
  .pt-dl { grid-template-columns: 96px 1fr; }
}

.pt-wa-link { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 500; padding: 2px 10px; border-radius: 999px; background: #E2F3E6; color: #1E6B3A; }
.pt-wa-link:hover { background: #CDEBD6; }
.pt-demo { background: #FFF4E0; color: #7A4B00; text-align: center; font-size: 13px; padding: 8px 12px; }

/* Vistas del calendario */
.pt-cal-head { flex-wrap: wrap; }
.pt-seg { display: inline-flex; background: #EEF1F5; border-radius: 999px; padding: 3px; }
.pt-seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font: 14px var(--font); color: var(--muted); cursor: pointer; }
.pt-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 3px rgba(20,37,74,.12); }
.pt-cal-tip { margin: -6px 0 12px; }
.pt-week.pt-dia, .pt-week.pt-mes { display: block; }
.pt-dayview { display: flex; flex-direction: column; gap: 10px; }
.pt-day-none { background: #fff; border: 1px dashed var(--line-strong); border-radius: 14px; padding: 28px; text-align: center; }
button.pt-ev { display: block; width: 100%; text-align: left; font: 13px var(--font); color: var(--ink); cursor: pointer; border-top: 0; border-right: 0; border-bottom: 0; }
button.pt-ev:hover { filter: brightness(.97); }
.pt-ev.big { font-size: 16px; padding: 14px 16px; border-left-width: 4px; border-radius: 12px; }
.pt-ev.big span { font-size: 13px; margin-top: 2px; }
button.pt-day-h { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.pt-mhead { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; font-size: 12px; color: var(--muted); text-align: center; text-transform: capitalize; }
.pt-month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.pt-mday { min-height: 92px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer; font: inherit; color: var(--ink); overflow: hidden; }
.pt-mday:hover { border-color: var(--line-strong); }
.pt-mday.out { background: transparent; color: #B8BFCB; }
.pt-mday.today .pt-mnum { background: #14254A; color: #fff; }
.pt-mnum { font-size: 13px; font-weight: 600; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.pt-mev { font-size: 11px; padding: 2px 5px; border-radius: 5px; background: #E8EEF7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-mev.realizada { background: #E2F3E6; } .pt-mev.cancelada { background: #F6E4E4; text-decoration: line-through; } .pt-mev.reagendada { background: #EFEAFB; } .pt-mev.pendiente { background: #FFF4E0; }
.pt-mmore { font-size: 11px; color: var(--muted); }
.dot.pendiente { background: #C47F00; }
@media (max-width: 760px) {
  .pt-mday { min-height: 54px; padding: 4px; }
  .pt-mev { font-size: 0; height: 6px; padding: 0; border-radius: 3px; }
  .pt-mev.realizada { background: #1E6B3A; } .pt-mev.agendada { background: #1F3A68; } .pt-mev.cancelada { background: #A12C2C; } .pt-mev.reagendada { background: #4B2E83; } .pt-mev.pendiente { background: #C47F00; }
  .pt-cal-head { gap: 10px; }
}
.pt-feed-item[data-ev], .pt-next-in[data-ev] { cursor: pointer; }
.pt-feed-item[data-ev]:hover { background: #F8F9FB; }
.pt-quick { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 16px; }
.pt-ficha-actions { margin: 0 0 16px; }

/* Ventana */
.pt-dlg { border: 0; border-radius: 20px; padding: 0; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: 0 24px 60px rgba(20,37,74,.25); }
.pt-dlg::backdrop { background: rgba(20,37,74,.4); }
.pt-dlg > div { padding: 24px; }
.pt-dlg h2 { font-size: 22px; margin: 0 0 4px; }
.pt-dlg-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.pt-dlg-when { color: var(--muted); margin: 0 0 14px; }
.pt-dlg .pt-alert { margin-bottom: 12px; }
.pt-dlg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pt-prep { background: #FFF8E8; border-radius: 12px; padding: 12px 14px; font-size: 15px; margin-top: 8px; }
.pt-danger { background: #A12C2C; color: #fff; border-color: #A12C2C; }
.pt-danger:hover { background: #8A2323; color: #fff; }
.pt-q { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.pt-q legend { font-size: 15px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.pt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pt-dlg textarea { width: 100%; min-height: 72px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font: 15px var(--font); resize: vertical; }
.pt-dlg input[type=date], .pt-dlg input[type=datetime-local] { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font: 16px var(--font); }
@media (max-width: 760px) {
  .pt-dlg { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .pt-dlg[open] { animation: ptSheet .25s ease-out; }
}
@keyframes ptSheet { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }

/* Pagos */
.pt-pays { display: flex; flex-direction: column; gap: 12px; }
.pt-pays > .pt-card + .pt-card { margin-top: 0; }
.pt-pay summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; }
.pt-pay summary::-webkit-details-marker { display: none; }
.pt-pay summary h2 { font-size: 18px; margin: 0; }
.pt-pay summary p { margin: 2px 0 0; }
.pt-pay-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pt-pay-r strong { font-size: 22px; }
.pt-pay-lines { margin-top: 14px; border-top: 1px solid var(--line); }
.pt-pay-lines > div { display: grid; grid-template-columns: 80px 1fr 70px 90px; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pt-pay-lines > div span:last-child { text-align: right; font-weight: 500; }
@media (max-width: 760px) { .pt-pay-lines > div { grid-template-columns: 64px 1fr 80px; } .pt-pay-lines > div span:nth-child(3) { display: none; } }

/* Portal de apoderados */
.pa-out { margin-left: auto; }
.pa-login { max-width: 440px; margin: 24px auto; }
.auth-demo { margin-top: 12px; }
.pa-kids { margin: 0 0 18px; overflow-x: auto; }
.pa-rep { margin: 6px 0 8px; font-size: 15px; }
.pa-hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.pa-rep-box { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.pa-big { font-size: 24px; font-weight: 600; margin: 0; }
.pa-sum { margin-bottom: 16px; grid-template-columns: 1fr 1fr; }
.pa-note { margin-top: 16px; }
.pa-photo { object-fit: cover; }
.pa-tutor .pt-tcard { margin-top: 0; }
@media (max-width: 860px) { .pa-sum { grid-template-columns: 1fr 1fr; } .pa-big { font-size: 18px; } }
@media (max-width: 360px) { .pa-sum { grid-template-columns: 1fr; } }

/* Portal de apoderados · Inicio simple (saludo, próxima clase, lo último, pagos y plan) */
.pa-hub { margin-left: auto; margin-right: 0; }
.pa-hello { margin: 4px 0 20px; }
.pa-hello h1 { font-size: clamp(26px, 3.8vw, 34px); margin: 2px 0 4px; }
.pa-hello p::first-letter { text-transform: uppercase; }
.pa-hello-sub { margin: 0; color: var(--muted); font-size: 16px; }
.pa-hero { position: relative; background: linear-gradient(135deg, #14254A 0%, #1F3A68 100%); color: #fff; border-radius: 20px; padding: 22px 24px; box-shadow: 0 14px 36px rgba(20,37,74,.18); transition: transform .2s, box-shadow .2s; }
.pa-hero[data-ev] { cursor: pointer; }
.pa-hero[data-ev]:hover, .pa-hero[data-ev]:focus-visible { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(20,37,74,.24); outline: none; }
.pa-hero-k { margin: 0 0 6px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.66); }
.pa-hero-row { display: flex; align-items: center; gap: 16px; }
.pa-hero-main { flex: 1; min-width: 0; }
.pa-hero-when { margin: 0; font-size: clamp(26px, 4vw, 34px); font-weight: 600; line-height: 1.15; }
.pa-hero-what { margin: 6px 0 0; font-size: 17px; color: rgba(255,255,255,.92); }
.pa-hero-what span { color: rgba(255,255,255,.62); }
.pa-hero-go { width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; transition: transform .2s; }
.pa-hero[data-ev]:hover .pa-hero-go { transform: translateX(3px); }
.pa-hero-go svg, .pa-tile-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pa-hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); }
.pa-who { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.pa-hero .pt-av { background-color: rgba(255,255,255,.16); color: #fff; }
.pa-chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; }
.pa-chip.ok { background: rgba(109,214,140,.2); color: #C9F2D5; }
.pa-chip.warn { background: rgba(255,196,84,.22); color: #FFE2A8; }
.pa-hero.is-empty { background: #fff; color: var(--ink); border: 1px dashed var(--line); box-shadow: none; }
.pa-hero.is-empty .pa-hero-k, .pa-hero.is-empty .pa-hero-what { color: var(--muted); }
.pa-hero.is-empty .pa-hero-when { font-size: 22px; }
.pa-after { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.pa-after-k { margin-right: 2px; }
.pa-pill { font: 14px var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; text-transform: none; transition: border-color .2s, background .2s; display: inline-flex; align-items: center; gap: 4px; }
.pa-pill strong { text-transform: capitalize; font-weight: 600; }
.pa-pill:hover { border-color: var(--ink); background: #F5F7FA; }
.pa-dot { width: 8px; height: 8px; border-radius: 50%; background: #E0A21A; display: inline-block; margin-left: 4px; }
.pa-last { margin-top: 20px; }
.pa-practice { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #F0FAF3; color: #1E4D2E; font-size: 15px; }
.pa-practice strong { font-size: 13px; color: #1E6B3A; }
.pa-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.pa-tile { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
a.pa-tile:hover { border-color: transparent; box-shadow: 0 10px 28px rgba(20,37,74,.1); }
.pa-tile-ico { width: 44px; height: 44px; flex: none; border-radius: 14px; background: #E8EEF7; color: #1F3A68; display: inline-flex; align-items: center; justify-content: center; }
.pa-tile-ico.ok { background: #E2F3E6; color: #1E6B3A; }
.pa-tile-ico.warn { background: #FFF4E0; color: #7A4B00; }
.pa-tile-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pa-tile-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pa-tile-txt strong { font-size: 19px; font-weight: 600; margin: 1px 0; }
.pa-tile-go { color: var(--muted); }
.pa-help { margin-top: 20px; text-align: center; }
.pa-help a { font-weight: 500; text-decoration: underline; }
@media (max-width: 640px) { .pa-tiles { grid-template-columns: 1fr; } .pa-hero { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { .pa-hero, .pa-hero-go { transition: none; } }

/* Botón SmartKid Hub en la barra de los portales y "Ver todo" como botón */
.pt-hub, .pa-hub { margin-right: 0; }
.pt-hub { margin-left: 0; }
@media (max-width: 760px) { .pt-hub, .pa-hub { margin-right: 0; } .pt-hub { margin-left: auto; } .pt-hub + .pt-me { margin-left: 4px; } }
.pt-more { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: border-color .2s, background .2s; }
.pt-more:hover { border-color: var(--ink); background: #F5F7FA; color: var(--ink); }
.pt-card-head { align-items: center; gap: 12px; margin-bottom: 10px; }
.pt-card-head .pt-h { margin: 0; }
.pt-alert-btn { display: inline-flex; align-items: center; margin-left: 8px; padding: 3px 12px; border-radius: 999px; background: #fff; color: inherit; font-weight: 500; text-decoration: none !important; border: 1px solid rgba(0,0,0,.08); }
.pt-alert-btn:hover { background: rgba(255,255,255,.7); }
@media (max-width: 760px) { .pt-hub, .pa-hub { width: auto; padding: 0 12px 0 10px; } .pt-hub span, .pa-hub span { display: inline; font-size: 13px; } .pt-hub span::before, .pa-hub span::before { content: none; } }
@media (max-width: 380px) { .pt-hub span, .pa-hub span { display: none; } .pt-hub, .pa-hub { width: 36px; padding: 0; } }

/* Portal de apoderados · Plan (tarjeta delgada: el color va solo en la etiqueta) y "Mejorar" */
.pa-planbars { margin: -6px 0 18px; }
.pa-plans { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; }
.pa-plan-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.pa-plan-row + .pa-plan-row { border-top: 1px solid var(--line); }
.pa-plan-tag { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; color: #fff; background: linear-gradient(120deg, #2457D6, #4C8BF7); }
.pa-plan-tag.plus { background: linear-gradient(120deg, #5B2BC4, #8E63F2); }
.pa-plan-tag.full { background: linear-gradient(120deg, #14254A, #C7962B); }
.pa-plan-tag.sueltas { background: #64748B; }
.pa-plan-info { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); }
.pa-plan-info strong { color: var(--ink); font-weight: 600; }
.pa-plan-info em { font-style: normal; margin-left: 8px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #E2F3E6; color: #1E6B3A; }
.pa-plan-up { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; font: 600 13px var(--font); cursor: pointer; color: #2457D6; background: #EEF3FF; transition: background .2s; }
.pa-plan-up:hover { background: #DFE8FF; }
.pa-plan-up.plus { color: #5B2BC4; background: #F1EBFF; }
.pa-plan-up.full { color: #14254A; background: #F4EEDD; }
.pa-plan-up svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 420px) { .pa-plan-row { flex-wrap: wrap; } .pa-plan-info { flex-basis: calc(100% - 120px); } }

/* Formularios del portal: cambiar día u hora y mejorar plan */
.pa-cbox { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: #EEF3FB; color: #1F3A68; font-size: 14px; }
.pa-cbox.warn { background: #FFF4E0; color: #7A4B00; }
.pa-cbox.ok { background: #E2F3E6; color: #1E6B3A; }
.pa-cbox .pt-alert-btn { margin-left: 0; }
.pa-cgrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.pa-cform .field, .pa-mform .field { margin-bottom: 12px; }
.pa-cform input, .pa-cform select, .pa-cform textarea, .pa-mform textarea { width: 100%; }
.pa-steps { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 12px; padding: 12px 14px; border-radius: 12px; background: #F5F7FA; font-size: 14px; }
.pa-steps div { display: flex; gap: 10px; align-items: flex-start; }
.pa-steps b { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #14254A; color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.pa-mk { margin: 14px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pa-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pa-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pa-opt span { display: inline-flex; flex-direction: column; align-items: center; min-width: 52px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.pa-opt small { font-size: 11px; color: var(--muted); }
.pa-opt input:checked + span { border-color: #2457D6; background: #EEF3FF; box-shadow: 0 0 0 1px #2457D6; color: #14254A; font-weight: 600; }
.pa-opt input:focus-visible + span { outline: 2px solid #2457D6; outline-offset: 2px; }
.pa-est { display: flex; flex-direction: column; margin: 16px 0 12px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(120deg, #2457D6, #3D7BF5); color: #fff; }
.pa-est .muted { color: rgba(255,255,255,.8); }
.pa-est strong { font-size: 26px; line-height: 1.2; }
.pa-est strong small { font-size: 14px; font-weight: 500; }
.pa-soon { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 14px; }
.pa-soon div { display: flex; flex-direction: column; }
.pa-soon strong { color: var(--ink); }
.pa-soon .pa-chip { background: #F2F4F8; color: var(--muted); }
.pa-tile-ico .pt-av { width: 44px; height: 44px; border-radius: 14px; }
.pa-toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 60; max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 14px; background: #14254A; color: #fff; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.2); animation: paIn .25s ease-out; transition: opacity .5s; }
.pa-toast.out { opacity: 0; }
@keyframes paIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 480px) { .pa-cgrid { grid-template-columns: 1fr; } }
.pa-sum .pt-card { display: flex; flex-direction: column; }
.pa-big.warn { color: #A12C2C; }
.pa-ok { grid-column: 1 / -1; background: #F0FAF3; border-color: #CDEBD6; }
.pa-ok .pt-h { color: #1E6B3A; margin-bottom: 4px; }
.pa-hist { margin-top: 16px; }
.pa-hist > summary { list-style: none; cursor: pointer; margin-bottom: 12px; }
.pa-hist > summary::-webkit-details-marker { display: none; }
.pa-hist[open] > summary { margin-bottom: 12px; }
.pa-hist .pt-card + .pt-card { margin-top: 12px; }
.pa-plan-x { margin-left: 6px; border: 0; background: none; padding: 0; font: 500 12px var(--font); color: var(--muted); text-decoration: underline; cursor: pointer; }
.pa-plan-x:hover { color: var(--ink); }

/* ── Arrastrar clases (arrastrar.js, migración 0022) ── */
[data-drag] { cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.sk-drag-active, .sk-drag-active * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }
.sk-dragging { opacity: .35; }
.sk-ghost { position: fixed; z-index: 1000; pointer-events: none; margin: 0; box-shadow: 0 10px 24px rgba(20,37,74,.25); transform: rotate(-1.5deg); opacity: .95; }
.pt-day.sk-drop-on { background: #EEF4FF; border-color: #1F3A68; box-shadow: inset 0 0 0 2px #1F3A68; }
.pt-ev.porconfirmar { background: repeating-linear-gradient(135deg, #FFF8EA, #FFF8EA 6px, #FFF1D6 6px, #FFF1D6 12px); border-left-color: #C47F00; border-left-style: dashed; }
.pt-ev.propuesta { background: #fff; border: 1.5px dashed #C47F00; border-left-width: 3px; color: #6B4A00; }
.pt-ev .pt-ev-tag { display: inline-block; margin-top: 3px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #8A5A00; }
.pt-drag-hint { font-size: 13px; color: var(--muted); margin: -6px 0 12px; }
.pa-late { background: #FFF4E0; border: 1px solid #F0D49A; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 8px 0; }
.pa-late label { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; font-weight: 500; }
.pa-cbox .pa-cbtns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pt-alert.pausa { background: #FDECEC; border-color: #E9B4B4; }
.dot.porconfirmar { background: #fff; border: 1.5px dashed #C47F00; }

.pt-mev.porconfirmar { background: #FFF1D6; } .pt-mev.propuesta { background: #fff; border: 1px dashed #C47F00; color: #6B4A00; }
.pt-mev[data-drag], .pt-mev[data-ev] { cursor: pointer; }
.pt-mday.sk-drop-on { background: #EEF4FF; border-color: #1F3A68; box-shadow: inset 0 0 0 2px #1F3A68; }
@media (max-width: 760px) { .pt-mev.porconfirmar { background: #C47F00; opacity: .55; } .pt-mev.propuesta { background: #C47F00; border: 0; opacity: .35; } }

/* ── Semana estilo Google Calendar (semana.js) ── */
.pt-week.pt-gc { display: block; }
.gc { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gc-head { display: grid; grid-template-columns: 48px repeat(7, minmax(56px, 1fr)); border-bottom: 1px solid var(--line); background: #fff; }
.gc-dh { display: flex; flex-direction: column; align-items: center; padding: 8px 2px 6px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.gc-dh strong { font-size: 20px; font-weight: 500; color: var(--ink); width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; margin-top: 2px; letter-spacing: 0; }
.gc-dh.today { color: #1F5BD6; } .gc-dh.today strong { background: #1F5BD6; color: #fff; }
.gc-body { display: grid; grid-template-columns: 48px 1fr; max-height: 560px; overflow-y: auto; overscroll-behavior: contain; position: relative; }
.gc-body > .gc-gut { position: relative; }
.gc-hr { height: 46px; position: relative; }
.gc-hr span { position: absolute; top: -7px; right: 6px; font-size: 10.5px; color: var(--muted); }
.gc-cols { display: grid; grid-template-columns: repeat(7, minmax(56px, 1fr)); position: relative;
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: 100% 46px; }
.gc-col { position: relative; border-left: 1px solid var(--line); }
.gc-col.past { background: rgba(240,242,246,.55); }
.gc-col.today { background: rgba(31,91,214,.035); }
.gc-ev { position: absolute; z-index: 1; border: 0; border-radius: 6px; padding: 3px 6px; text-align: left; font: 12px/1.25 var(--font); color: #fff; background: #1F5BD6;
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column; gap: 1px; box-shadow: 0 0 0 1px #fff; }
.gc-ev strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-ev span { font-size: 11px; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-ev em { font-style: normal; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.gc-ev.corto { flex-direction: row; align-items: center; gap: 4px; padding-top: 1px; padding-bottom: 1px; }
.gc-ev.corto em { display: none; }
.gc-ev.agendada { background: #1F5BD6; }
.gc-ev.realizada { background: #2E7D4F; }
.gc-ev.pendiente { background: #C47F00; }
.gc-ev.cancelada { background: #F3DCDC; color: #8A2323; text-decoration: line-through; }
.gc-ev.reagendada { background: #E9E3F7; color: #4B2E83; }
.gc-ev.porconfirmar { background: repeating-linear-gradient(135deg, #FFE7B8, #FFE7B8 6px, #FFDA94 6px, #FFDA94 12px); color: #6B4A00; }
.gc-ev.propuesta { background: #fff; color: #8A5A00; border: 1.5px dashed #C47F00; box-shadow: none; }
.gc-ev:hover { filter: brightness(.97); }
.gc-now { position: absolute; left: 0; right: 0; height: 2px; background: #D93025; z-index: 2; pointer-events: none; }
.gc-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #D93025; }
.gc-prev { position: absolute; left: 2px; right: 2px; z-index: 3; border: 2px dashed #1F5BD6; border-radius: 6px; background: rgba(31,91,214,.08); font: 600 11px var(--font); color: #1F5BD6; padding: 2px 5px; pointer-events: none; }
.gc-col.sk-drop-on { background: rgba(31,91,214,.06); box-shadow: none; }
.gc .sk-ghost, .sk-ghost.gc-ev { position: fixed; }
@media (max-width: 760px) {
  .pt-week.pt-gc { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .gc { min-width: 520px; }
  .gc-head, .gc-cols { grid-template-columns: 40px repeat(7, minmax(64px, 1fr)); }
  .gc-cols { grid-template-columns: repeat(7, minmax(64px, 1fr)); }
  .gc-body { grid-template-columns: 40px 1fr; max-height: 62vh; }
  .gc-ev { font-size: 11px; padding: 2px 4px; }
}
.gc-ev > * { flex: none; }
.gc-ev em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Celular: 3 días y elegir día/hora con toques (semana.js) ── */
.gc.gc-pocos { min-width: 0; }
@media (max-width: 760px) {
  .pt-week.pt-gc:has(.gc-pocos) { overflow-x: visible; }
  .gc.gc-pocos .gc-ev { font-size: 12px; padding: 4px 6px; }
  .gc.gc-pocos .gc-dh strong { font-size: 22px; }
}
.sk-sel-k { font-size: 13px; font-weight: 600; color: var(--ink); margin: 14px 0 8px; }
.sk-dias { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.sk-dias::-webkit-scrollbar { display: none; }
.sk-dia { flex: none; scroll-snap-align: start; min-width: 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: #fff; font: 13px var(--font); color: var(--muted); cursor: pointer; text-transform: capitalize; }
.sk-dia strong { font-size: 14px; color: var(--ink); font-weight: 600; }
.sk-dia[aria-pressed="true"] { background: #1F5BD6; border-color: #1F5BD6; color: #DCE6FB; }
.sk-dia[aria-pressed="true"] strong { color: #fff; }
.sk-horas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 196px; overflow-y: auto; padding: 2px; -webkit-overflow-scrolling: touch; }
.sk-hora { padding: 10px 0; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; font: 500 14px var(--font); color: var(--ink); cursor: pointer; }
.sk-hora[aria-pressed="true"] { background: #1F5BD6; border-color: #1F5BD6; color: #fff; }
.sk-dia:focus-visible, .sk-hora:focus-visible { outline: 2px solid #1F5BD6; outline-offset: 2px; }
.sk-elegido { margin: 12px 0 4px; font-size: 14px; color: var(--muted); }
.sk-elegido strong { color: var(--ink); }
@media (max-width: 760px) {
  .pt-dlg-actions { position: sticky; bottom: 0; background: #fff; margin: 16px -24px -24px; padding: 12px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .pt-dlg-actions .btn { flex: 1; min-height: 46px; }
}
.pt-mday.sel { border-color: #1F5BD6; box-shadow: inset 0 0 0 2px #1F5BD6; }
.pt-mlist { margin-top: 14px; }
.pt-mlist .pt-h { margin-top: 0; text-transform: none; }
@media (max-width: 760px) {
  .pt-mes .pt-month { gap: 4px; }
  .pt-mes .pt-mday { min-height: 46px; border-radius: 10px; }
  .pt-mes .pt-mhead { gap: 4px; }
  .pt-drag-hint { font-size: 12.5px; }
}
