:root{color:#102a43;--green:#0b6e4f;--green-dark:#08553c;--brand:#0b6e4f;--brand-dark:#08553c;--on-brand:#fff;--brand-link:#0b6e4f;--blue:#243b53;--danger:#b42318;--card:#fff;--border:#cbd2d9;--muted:#486581;--touch-min:44px;--shell-max:390px;background:#eef6f1;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.4}*{box-sizing:border-box}body{background:#eef6f1;min-height:100vh;margin:0}a{color:inherit;text-decoration:none}.page{min-height:100vh;max-width:var(--shell-max);margin:0 auto;padding:1rem}.page.center{place-items:center;display:grid}.app-shell{min-height:100vh;max-width:var(--shell-max);padding-bottom:calc(72px + env(safe-area-inset-bottom));background:#eef6f1;flex-direction:column;margin:0 auto;display:flex}.topbar{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:5;background:#eef6f1ee;justify-content:space-between;align-items:center;padding:.85rem 1rem .5rem;display:flex;position:sticky;top:0}.topbar-left{align-items:center;gap:.5rem;display:flex}.topbar h1{margin:0;font-size:1.25rem}.back-link{border:1px solid var(--border);background:#fff;border-radius:8px;place-items:center;width:44px;height:44px;font-size:1.1rem;display:grid}.app-main{flex:1;padding:0 1rem 1rem}.bottom-nav{width:100%;max-width:var(--shell-max);border-top:1px solid var(--border);padding:0 0 env(safe-area-inset-bottom);z-index:10;background:#fff;grid-template-columns:repeat(4,1fr);display:grid;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.bottom-nav a{height:56px;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:12px;font-weight:600;display:flex;position:relative}.bottom-nav a.active{color:var(--brand-link)}.bottom-nav a.active:before{content:"";background:var(--brand);border-radius:0 0 3px 3px;height:3px;position:absolute;top:0;left:25%;right:25%}.card{background:var(--card);border-radius:16px;margin-bottom:.85rem;padding:1.1rem 1.15rem;box-shadow:0 2px 10px #102a4312}.card-narrow{width:100%;max-width:390px}.card h1,.card h2{margin-top:0}.card h2{margin-bottom:.75rem;font-size:1.05rem}.field{flex-direction:column;gap:.35rem;margin:.75rem 0;font-size:.92rem;font-weight:600;display:flex}input{font:inherit;border:1px solid var(--border);background:#fff;border-radius:10px;padding:.65rem .85rem}.input-lg{font-size:1.05rem}.btn{font:inherit;cursor:pointer;background:var(--brand);color:var(--on-brand);min-height:var(--touch-min);border:none;border-radius:12px;justify-content:center;align-items:center;padding:.7rem 1rem;font-weight:600;display:inline-flex}.btn:disabled{color:#486581;cursor:not-allowed;background:#d9e2ec;border-color:#d9e2ec}.btn-primary{background:var(--brand);color:var(--on-brand)}.btn-primary:hover:not(:disabled){background:var(--brand-dark)}.btn-secondary{background:var(--blue);color:#fff}.btn-danger{background:var(--danger);color:#fff}.btn-outline-danger{color:var(--danger);border:1.5px solid var(--danger);background:#fff}.btn-outline-danger:hover:not(:disabled){background:#fef3f2}.btn-retry{min-height:44px}.error-notice{margin:8px 0 12px}.error-notice .error{margin:0 0 8px}.btn-ghost{color:var(--blue);border:1px solid var(--border);background:#fff}.btn-block{width:100%;margin-top:.5rem}.muted{color:var(--muted)}.small{font-size:.85rem}.error{color:var(--danger);margin:.5rem 0;font-weight:600}.ok{color:var(--green);margin:.5rem 0;font-weight:600}.greeting{margin:0 0 .85rem}.center-text{text-align:center}.pad-top{padding-top:.5rem}.mono{word-break:break-all;font-family:ui-monospace,monospace}.child-list{flex-direction:column;gap:.15rem;display:flex}.child-card{transition:transform .1s;display:block}.child-card:active{transform:scale(.99)}.child-card-head{justify-content:space-between;align-items:flex-start;gap:.5rem;margin-bottom:.75rem;display:flex}.child-card h2{margin:0 0 .15rem;font-size:1.15rem}.stats{grid-template-columns:1fr 1fr;gap:.65rem;margin-bottom:.5rem;display:grid}.stats.compact{margin-bottom:.65rem}.stats:has(.stat:nth-child(3)){grid-template-columns:1fr}@media (width>=360px){.card .stats:has(.stat:nth-child(3)){grid-template-columns:1fr 1fr}.card .stats:has(.stat:nth-child(3)) .stat:last-child{grid-column:1/-1}}.stat{background:#f0f7f3;border-radius:12px;padding:.7rem .85rem}.stat-label{color:var(--muted);font-size:14px;display:block}.stat-value{font-size:1.25rem;font-weight:700}.stat-value.sm{font-size:1rem}.progress{background:#d9e2ec;border-radius:999px;height:6px;overflow:hidden}.progress-bar{background:var(--green);border-radius:999px;height:100%}.badge-block{color:var(--danger);background:#fde8e6;border-radius:6px;padding:.2rem .5rem;font-size:14px;font-weight:700;display:inline-block}.inline-form{margin-bottom:1rem}.section-head{flex-direction:column;gap:.5rem;margin-bottom:.75rem;display:flex}.chips{flex-wrap:wrap;gap:.35rem;display:flex}.chip{border:1px solid var(--border);min-height:44px;font:inherit;cursor:pointer;color:var(--blue);background:#fff;border-radius:999px;padding:10px 14px;font-size:14px}.chip.active{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}.tx-list{margin:0;padding:0;list-style:none}.tx-list li{border-bottom:1px solid #eef2f6;justify-content:space-between;align-items:flex-start;gap:.75rem;padding:.65rem 0;display:flex}.tx-list li:last-child{border-bottom:none}.tx-date{font-size:14px;font-weight:400;display:block}.tx-plus{color:var(--green);white-space:nowrap;font-weight:700}.tx-minus{color:var(--blue);white-space:nowrap;font-weight:700}.menu-list{margin:0;padding:0;list-style:none}.menu-list li{border-bottom:1px solid #eef2f6;justify-content:space-between;gap:.75rem;padding:.75rem 0;display:flex}.menu-list li:last-child{border-bottom:none}.menu-price{white-space:nowrap;font-weight:700}.profile-dl>div{margin-bottom:.65rem}.profile-dl dt{color:var(--muted);font-size:14px;font-weight:600}.profile-dl dd{margin:.15rem 0 0}.child-card-right{align-items:center;gap:8px;display:flex}.chevron{color:var(--muted);font-size:28px;line-height:1}.last-buy{margin:10px 0 0;font-size:14px}.skeleton{background:#d9e2ec;border-radius:8px;animation:1.2s ease-in-out infinite pulse;display:block}@keyframes pulse{0%,to{opacity:1}50%{opacity:.45}}.child-skeleton{flex-direction:column;gap:12px;min-height:220px;display:flex}.sk-title{width:55%;height:20px}.sk-sub{width:35%;height:14px}.sk-stats{grid-template-columns:1fr 1fr;gap:10px;display:grid}.sk-stat{border-radius:12px;height:64px}.sk-bar{width:100%;height:6px}.card[aria-busy] .sk-title{margin:10px 0}.dialog-backdrop{z-index:50;background:#102a4373;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.dialog{width:100%;max-width:358px;margin:0}.dialog p{margin:0 0 16px}.dialog-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}:focus-visible{outline-offset:2px;outline:3px solid #0b6e4f}.badge-baja{color:#b54708;background:#fffaeb;border-radius:999px;padding:2px 10px;font-size:.85rem;font-weight:600;display:inline-block}.baja-note{color:#7a2e0e;background:#fffaeb;border:1px solid #fedf89;border-radius:10px;margin:10px 0;padding:10px 12px;font-size:.92rem}fieldset.ajustes{border:0;min-width:0;margin:0;padding:0}fieldset.ajustes:disabled{opacity:.55}.session-check{text-align:center;justify-items:center;gap:.75rem;display:grid}.session-check .btn{justify-self:stretch}.spinner{border:3px solid;border-right-color:#0000;border-radius:50%;width:28px;height:28px;animation:.8s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.avatar{object-fit:cover;background:#d9e2ec;border-radius:50%;flex:none}.avatar.placeholder{color:#334e68;place-items:center;font-weight:700;display:inline-grid}.child-card-name{flex:1;min-width:0}.child-head{align-items:center;gap:.75rem;margin-bottom:.5rem;display:flex}.child-head p{margin:0}.stat-sub{margin-top:2px;font-size:.8rem;display:block}.link-olvido{text-align:center;color:var(--blue);margin-top:.75rem;font-weight:600;display:block}.tx-anulada{opacity:.7;text-decoration:line-through}.tx-badge-anulada{color:#627d98;background:#eef2f6;border-radius:999px;margin-left:6px;padding:0 8px;font-size:.75rem;font-weight:600;display:inline-block}.nav-badge{color:#fff;text-align:center;background:#d92d20;border-radius:999px;min-width:18px;height:18px;padding:0 5px;font-size:11px;line-height:18px;position:absolute;top:6px;left:calc(50% + 6px)}.aviso-list{margin:0;padding:0;list-style:none}.aviso-list li{border-bottom:1px solid var(--border);padding:12px 0}.aviso-list li:last-child{border-bottom:0}.aviso-list li.no-leido strong:before{content:"● ";color:var(--green)}.aviso-list p{margin:4px 0}.dia-list{margin:0;padding:0;list-style:none}.dia-list li{border-bottom:1px solid var(--border);align-items:flex-start;gap:10px;padding:12px 0;display:flex}.dia-list li:last-child{border-bottom:0}.dia-list .dia-info{flex:1}.dia-list input[type=checkbox]{width:22px;height:22px;margin-top:2px}.estado-pill{background:#f0f4f8;border-radius:999px;padding:2px 8px;font-size:12px;font-weight:600;display:inline-block}.estado-pill.pagado{color:#067647;background:#ecfdf3}.estado-pill.entregado{color:#175cd3;background:#eff8ff}.estado-pill.reembolsado,.estado-pill.cancelado{color:#b42318;background:#fef3f2}.estado-pill.pendiente{color:#b54708;background:#fffaeb}.resumen-pago{border-top:1px solid var(--border);background:#fff;border-radius:12px;padding:12px;position:sticky;bottom:64px;box-shadow:0 -2px 10px #0000000f}.canales{grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0;display:grid}.canales .chip{text-align:center;justify-content:center}.instrucciones{border:1px dashed var(--border);background:#f8fafc;border-radius:10px;padding:12px}.simulador{background:#fffaeb;border:2px dashed #f79009;border-radius:12px;margin-top:12px;padding:12px}.simulador .btn{margin-top:6px}.limites-cat table{border-collapse:collapse;width:100%;font-size:14px}.limites-cat th,.limites-cat td{text-align:left;border-bottom:1px solid var(--border);padding:6px 4px}.limites-cat input{width:80px}.toggle-row{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:10px 0;display:flex}.toggle-row input{width:22px;height:22px}.acciones-hijo{grid-template-columns:1fr 1fr;gap:8px;display:grid}.semana-nav{justify-content:space-between;align-items:center;gap:8px;display:flex}.semana-nav h2{text-align:center;flex:1;margin:0;font-size:1.05rem}.semana-nav .btn{width:auto;min-width:44px;padding:8px 14px}select{font:inherit;border:1px solid var(--border);background:#fff;border-radius:10px;padding:.65rem .85rem}.logo-escuela{display:inline-block}.powered-by{color:#627d98;text-align:center;margin:8px 0 0;font-size:.72rem}.login-marca{text-align:center;flex-direction:column;align-items:center;gap:8px;margin-bottom:12px;display:flex}.login-marca strong{font-size:1.1rem}.ticket-marca{flex-direction:column;align-items:center;gap:4px;display:flex}.header-marca{align-items:center;gap:8px;min-width:0;display:inline-flex}.header-marca strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.comprobante{border:1px dashed #bcccdc;border-radius:10px;flex-direction:column;gap:4px;margin:12px 0;padding:12px;display:flex}.topbar-logo{flex:none}.child-card{cursor:pointer}.child-link{color:inherit;text-decoration:none}.stat-saldo{flex-wrap:wrap;align-items:center;column-gap:12px;display:flex}.stat-saldo .stat-label{flex-basis:100%}.btn-recargar{align-items:center;min-height:48px;padding:0 18px;font-weight:700;display:inline-flex}.progress-texto{margin:6px 0 0;font-size:.9rem;font-weight:600}.dia-list li{flex-direction:column;gap:4px;padding:0}.dia-fila{align-items:center;gap:12px;width:100%;min-height:56px;padding:10px 4px;display:flex}.dia-tocable .dia-fila{cursor:pointer}.dia-sel{background:color-mix(in srgb, var(--brand) 8%, #fff)}.dia-list input[type=checkbox]{width:28px;height:28px;accent-color:var(--brand);flex:none;margin:0}.dia-sin-check{flex:none;width:28px}.dia-prepago{padding:0 4px 10px 44px}.dia-prepago .btn{min-height:44px}.resumen-pago{z-index:5;position:sticky;bottom:72px}.btn-pagar{min-height:52px;font-size:1.05rem}.btn-menu-semanal{min-height:48px;margin-bottom:12px}.link-tocable{align-items:center;min-height:44px;padding:0 8px;font-weight:600;display:inline-flex}.toggle-row{cursor:pointer;min-height:52px}.toggle-row input{width:28px;height:28px;accent-color:var(--brand);flex:none}.btn-salir{min-height:48px;margin-top:16px}.profile-dl{margin:8px 0 0}.link-olvido{justify-content:center;align-items:center;min-height:44px;padding:0 8px;display:inline-flex}.child-link{align-items:center;min-height:44px;display:inline-flex}input:not([type=checkbox]):not([type=radio]){box-sizing:border-box;min-height:44px}input[type=checkbox],.dia-list input[type=checkbox]{width:44px;height:44px;accent-color:var(--brand);flex:none;margin:0}.link-perfil{align-items:center;min-width:44px;min-height:44px;padding:0 6px;font-weight:600;display:inline-flex}
