/* Omega Dance Studio | Panel. Misma identidad que la web: negro de escenario, luz cian (acción) y magenta (atención),
   Clash Display para títulos y Satoshi para texto. Móvil primero. */
:root {
  --ink: #08080A; --ink-soft: #121216; --ink-elev: #1a1a20; --ink-hi: #23232b;
  --white: #F7F7FA; --muted: rgba(247,247,250,.64); --muted-strong: rgba(247,247,250,.84);
  --line: rgba(247,247,250,.12); --line-strong: rgba(247,247,250,.26);
  --cyan: #3FE1FF; --cyan-dim: #1FA8C4; --magenta: #FF3B7D; --green: #46E3A1; --amber: #FFC247;
  --display: 'Clash Display', 'Arial Narrow', sans-serif; --sans: 'Satoshi', 'Segoe UI', sans-serif;
  --r: 14px; --r-sm: 10px; --ease: cubic-bezier(.22,1,.36,1);
  --side-w: 248px; --top-h: 60px; --tab-h: 64px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--ink); color: var(--white); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; text-transform: uppercase; margin: 0; line-height: 1; letter-spacing: .005em; }
p { margin: 0; } button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; } img { max-width: 100%; display: block; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
svg { width: 22px; height: 22px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Arranque y entrada */
.boot { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; background: var(--ink); z-index: 90; color: var(--muted); }
.boot img { width: 56px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.login { min-height: 100svh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(60rem 30rem at 50% -10%, rgba(63,225,255,.12), transparent 60%), var(--ink); }
.login-card { width: min(420px, 100%); display: grid; gap: 1rem; background: var(--ink-soft); border: 1px solid var(--line); border-radius: 22px; padding: 2rem 1.6rem; }
.login-mark { width: 64px; margin-bottom: .2rem; }
.login-card h1 { font-size: 2.6rem; }
.demo-note { background: rgba(63,225,255,.1); border: 1px solid rgba(63,225,255,.35); border-radius: var(--r-sm); padding: .7rem .9rem; font-size: .9rem; }
.pw { position: relative; display: block; } .pw input { padding-right: 4.4rem; }
.pw-btn { position: absolute; right: .35rem; top: 50%; translate: 0 -50%; background: none; border: 0; color: var(--cyan); font-weight: 700; padding: .55rem .7rem; cursor: pointer; border-radius: 8px; }
.err { color: #ff8fb0; font-size: .92rem; } .link { background: none; border: 0; color: var(--muted-strong); text-decoration: underline; cursor: pointer; padding: .5rem; justify-self: center; }

/* Campos */
.field { display: grid; gap: .4rem; min-width: 0; } .field > span, .lbl { font-weight: 700; font-size: .88rem; color: var(--muted-strong); }
.field small { color: var(--muted); font-size: .8rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=month], input[type=time], input[type=url], input[type=search], select, textarea {
  width: 100%; min-width: 0; background: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: .8rem .9rem; min-height: 48px; transition: border-color .15s, background .15s; }
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); background: var(--ink-soft); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7F7FA' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px; padding-right: 2.4rem; }
input[type=date], input[type=month], input[type=time] { color-scheme: dark; }
.row2 { display: grid; gap: .9rem; grid-template-columns: 1fr; } @media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.form-grid { display: grid; gap: 1rem; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .65rem 1.15rem; border-radius: 999px; border: 1px solid transparent; font-weight: 800; font-size: .95rem; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s var(--ease), background .15s, border-color .15s, color .15s; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--cyan); color: var(--ink); } .btn-primary:disabled { opacity: .5; cursor: default; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--white); }
.btn-danger { background: var(--magenta); color: var(--ink); }
.btn-wa { background: #25D366; color: #06210f; }
.btn-lg { min-height: 54px; font-size: 1.02rem; } .btn-sm { min-height: 38px; padding: .4rem .9rem; font-size: .86rem; } .btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { background: #7aeaff; } .btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); } .btn-wa:hover { background: #4be585; } }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: none; border: 1px solid var(--line); cursor: pointer; color: var(--muted-strong); } .icon-btn svg { width: 19px; height: 19px; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { border-color: var(--cyan); color: var(--cyan); } }
.icon-btn.danger { color: #ff8fb0; }

/* Estructura */
.app { min-height: 100svh; }
.demo-bar { position: sticky; top: 0; z-index: 41; display: flex; flex-wrap: wrap; gap: .3rem .9rem; justify-content: center; padding: .5rem 1rem; background: #0e3640; color: #d7f6ff; font-size: .85rem; text-align: center; }
.demo-bar a { color: var(--cyan); font-weight: 700; }
.top { position: sticky; top: 0; z-index: 40; height: var(--top-h); display: flex; align-items: center; gap: .8rem; padding: 0 1rem; background: rgba(8,8,10,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.demo-bar:not([hidden]) ~ .top { top: 0; }
.top-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.top-brand img { width: 30px; height: 30px; } .top-word { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .04em; }
.top-tag { color: var(--muted); font-size: .8rem; padding-left: .6rem; border-left: 1px solid var(--line-strong); }
.top-actions { display: flex; align-items: center; gap: .6rem; }
.gsearch { display: none; align-items: center; gap: .6rem; width: min(340px, 34vw); min-height: 42px; padding: 0 1rem; border-radius: 999px; background: var(--ink-soft); border: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.gsearch svg { width: 18px; height: 18px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink-hi); border: 1px solid var(--line-strong); font-weight: 900; cursor: pointer; }
#viewSite { display: none; }
.side { display: none; }
.main { padding: 1.4rem 1rem calc(var(--tab-h) + 6.5rem); max-width: 1120px; margin: 0 auto; outline: none; }
.tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(14,14,18,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.tabbar .navlink { flex-direction: column; justify-content: center; gap: .15rem; font-size: .72rem; padding: .3rem; position: relative; border-radius: 0; }
.tabbar .navlink svg { width: 23px; height: 23px; }
.navlink { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: var(--r-sm); text-decoration: none; color: var(--muted-strong); font-weight: 700; position: relative; transition: background .15s, color .15s; }
.navlink[aria-current=page] { color: var(--cyan); background: rgba(63,225,255,.1); }
.tabbar .navlink[aria-current=page] { background: none; }
.tabbar .navlink[aria-current=page]::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--cyan); }
.badge { background: var(--magenta); color: var(--ink); font-weight: 900; font-size: .72rem; min-width: 22px; height: 22px; padding: 0 .35rem; border-radius: 999px; display: inline-grid; place-items: center; margin-left: auto; }
.tabbar .badge { position: absolute; top: 4px; left: 55%; margin: 0; min-width: 19px; height: 19px; font-size: .66rem; }
.side-group { padding: 1.2rem .9rem .35rem; font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .navlink:hover { background: var(--ink-soft); color: var(--white); } }

@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); grid-template-rows: auto var(--top-h) 1fr; grid-template-areas: "demo demo" "top top" "side main"; }
  .demo-bar { grid-area: demo; } .top { grid-area: top; position: sticky; padding: 0 1.6rem; }
  .side { grid-area: side; display: flex; flex-direction: column; position: sticky; top: calc(var(--top-h) + var(--demo-h, 0px)); height: calc(100svh - var(--top-h) - var(--demo-h, 0px)); overflow-y: auto; padding: .8rem .8rem 1.4rem; border-right: 1px solid var(--line); }
  .main { grid-area: main; width: 100%; padding: 2.2rem 2.4rem 6rem; max-width: 1180px; margin: 0; }
  .tabbar { display: none; } .gsearch { display: inline-flex; } #viewSite { display: inline-flex; }
  .top-brand { margin-right: 1rem; } .top-actions { margin-left: auto; }
}
@media (max-width: 899px) { .top-brand { margin-right: auto; } }

/* Encabezado de cada pantalla: título + una frase que explica + acción principal */
.ph { display: grid; gap: .8rem; margin-bottom: 1.4rem; }
.ph-top { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.ph h1 { font-size: clamp(2rem, 6vw, 3rem); } .ph p { color: var(--muted-strong); max-width: 60ch; margin-top: .55rem; }
.ph-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted-strong); text-decoration: none; font-weight: 700; margin-bottom: .9rem; min-height: 40px; } .back svg { width: 18px; height: 18px; }
.help { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--ink-soft); }
.help summary { cursor: pointer; padding: .7rem 1rem; font-weight: 700; font-size: .9rem; color: var(--muted-strong); list-style: none; display: flex; gap: .5rem; align-items: center; min-height: 44px; }
.help summary::-webkit-details-marker { display: none; } .help summary svg { width: 18px; height: 18px; color: var(--cyan); }
.help[open] summary { color: var(--white); } .help ul { margin: 0; padding: 0 1rem 1rem 2.2rem; color: var(--muted-strong); display: grid; gap: .35rem; font-size: .93rem; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2rem 0 .8rem; flex-wrap: wrap; } .sec-h h2 { font-size: 1.5rem; } .sec-h a, .sec-h button.link { color: var(--cyan); font-weight: 700; text-decoration: none; }

/* Tarjetas y listas */
.card { background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; }
.card h3 { font-size: 1.15rem; margin-bottom: .7rem; }
.grid { display: grid; gap: .9rem; } .g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); } .g4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .g4 { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; display: grid; gap: .3rem; text-decoration: none; min-width: 0; }
.stat .k { font-size: .8rem; font-weight: 700; color: var(--muted); } .stat .v { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1; } .stat .v small { font-size: .5em; color: var(--muted); font-family: var(--sans); font-weight: 700; }
.stat .s { font-size: .8rem; color: var(--muted); }
a.stat { transition: border-color .15s, transform .15s var(--ease); } @media (hover: hover) and (pointer: fine) { a.stat:hover, .todo:hover { border-color: var(--cyan); } }
.bar { height: 8px; border-radius: 6px; background: var(--ink-hi); overflow: hidden; margin-top: .4rem; } .bar i { display: block; height: 100%; background: var(--cyan); border-radius: 6px; transition: width .5s var(--ease); }
.todos { display: grid; gap: .7rem; }
.todo { display: flex; gap: .9rem; align-items: center; padding: .9rem 1rem; background: var(--ink-soft); border: 1px solid var(--line); border-left: 4px solid var(--magenta); border-radius: var(--r); text-decoration: none; min-width: 0; }
.todo.ok { border-left-color: var(--green); } .todo.info { border-left-color: var(--cyan); }
.todo b { display: block; } .todo span { color: var(--muted); font-size: .88rem; } .todo > div { min-width: 0; flex: 1; } .todo svg:last-child { color: var(--muted); }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; } @media (min-width: 700px) { .quick { grid-template-columns: repeat(4, 1fr); } }
.quick a, .quick button { display: grid; justify-items: center; gap: .5rem; padding: 1.1rem .6rem; background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font-weight: 800; font-size: .92rem; text-align: center; cursor: pointer; color: var(--white); }
.quick svg { width: 26px; height: 26px; color: var(--cyan); }
@media (hover: hover) and (pointer: fine) { .quick a:hover, .quick button:hover { border-color: var(--cyan); } }

.list { display: grid; gap: .6rem; }
.item { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; width: 100%; text-align: left; text-decoration: none; cursor: pointer; }
.item > .grow { flex: 1; min-width: 0; } .item b { display: block; overflow-wrap: anywhere; } .item .sub { color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.item.off { opacity: .55; }
@media (hover: hover) and (pointer: fine) { .item:hover { border-color: var(--line-strong); background: var(--ink-elev); } }
.ava { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-hi); font-weight: 900; font-size: .95rem; flex: none; border: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 800; padding: .22rem .65rem; border-radius: 999px; background: var(--ink-hi); color: var(--muted-strong); white-space: nowrap; }
.pill.ok { background: rgba(70,227,161,.16); color: var(--green); } .pill.warn { background: rgba(255,194,71,.16); color: var(--amber); }
.pill.bad { background: rgba(255,59,125,.16); color: #ff8fb0; } .pill.cy { background: rgba(63,225,255,.14); color: var(--cyan); }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding: .1rem 0 .5rem; scrollbar-width: none; margin: 0 -1rem; padding-inline: 1rem; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .chips { margin: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; } }
.chip { flex: none; min-height: 42px; padding: 0 1rem; border-radius: 999px; background: var(--ink-soft); border: 1px solid var(--line-strong); color: var(--muted-strong); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; font-size: .92rem; }
.chip[aria-pressed=true], .chip.on { background: var(--cyan); border-color: var(--cyan); color: var(--ink); } .chip .n { font-size: .75rem; opacity: .75; }
.searchbox { position: relative; } .searchbox svg { position: absolute; left: .9rem; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; } .searchbox input { padding-left: 2.6rem; }
.toolbar { display: grid; gap: .7rem; margin-bottom: 1rem; } @media (min-width: 700px) { .toolbar.row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.empty { text-align: center; padding: 2.6rem 1.2rem; border: 1px dashed var(--line-strong); border-radius: var(--r); display: grid; gap: .8rem; justify-items: center; } .empty > svg { width: 34px; height: 34px; color: var(--cyan); } .empty h3 { font-size: 1.3rem; } .empty p { color: var(--muted-strong); max-width: 42ch; }
.seg { display: inline-flex; background: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; max-width: 100%; overflow-x: auto; }
.seg button { min-height: 40px; padding: 0 1.1rem; border-radius: 999px; background: none; border: 0; font-weight: 800; color: var(--muted-strong); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed=true] { background: var(--cyan); color: var(--ink); }

/* Switch */
.sw { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; cursor: pointer; min-height: 52px; }
.sw .t b { display: block; } .sw .t span { color: var(--muted); font-size: .86rem; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw .track { width: 52px; height: 30px; border-radius: 999px; background: var(--ink-hi); border: 1px solid var(--line-strong); position: relative; flex: none; transition: background .2s; }
.sw .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); transition: transform .2s var(--ease); }
.sw input:checked + .track { background: var(--cyan); } .sw input:checked + .track::after { transform: translateX(22px); background: var(--ink); }
.sw input:focus-visible + .track { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Selector de días / chips de elección */
.pick { display: flex; flex-wrap: wrap; gap: .45rem; } .pick label { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; } .pick span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--ink); font-weight: 800; cursor: pointer; font-size: .9rem; }
.pick input:checked + span { background: var(--cyan); color: var(--ink); border-color: var(--cyan); } .pick input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.day-pill { display: inline-block; font-size: .72rem; font-weight: 800; padding: .12rem .5rem; border-radius: 999px; background: var(--ink-hi); margin-right: .25rem; }

/* Diálogos */
.dlg { border: 1px solid var(--line-strong); border-radius: 20px; background: var(--ink-soft); color: var(--white); padding: 0; width: min(560px, calc(100vw - 1.6rem)); max-height: calc(100svh - 2rem); overflow: hidden; }
.dlg::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(3px); }
.dlg[open] { animation: dlgIn .28s var(--ease); } @keyframes dlgIn { from { opacity: 0; transform: translateY(14px); } }
.dlg-box { padding: 1.3rem; display: grid; gap: 1rem; max-height: calc(100svh - 2rem); overflow-y: auto; overflow-x: hidden; min-width: 0; }
.dlg-box h2 { font-size: 1.6rem; } .dlg-btns { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
.dlg-btns .btn { flex: 1 1 auto; } @media (min-width: 560px) { .dlg-btns .btn { flex: none; } }
.dlg-list { display: grid; gap: .4rem; } .dlg-list button { display: flex; align-items: center; gap: .8rem; min-height: 52px; padding: .5rem .9rem; border-radius: var(--r-sm); background: var(--ink-elev); border: 1px solid var(--line); cursor: pointer; font-weight: 700; text-align: left; } .dlg-list button.danger { color: #ff8fb0; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; } .dlg-head h2 { overflow-wrap: anywhere; }
.dlg.sheet { margin: auto auto 0; width: min(640px, 100vw); border-radius: 22px 22px 0 0; border-bottom: 0; max-height: 94svh; } .dlg.sheet .dlg-box { max-height: 94svh; padding-bottom: calc(1.3rem + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .dlg.sheet { margin: auto; border-radius: 20px; border-bottom: 1px solid var(--line-strong); } }
.preview { border: 1px dashed var(--line-strong); border-radius: var(--r-sm); padding: .9rem; background: var(--ink); } .preview > .lbl { display: block; margin-bottom: .6rem; color: var(--cyan); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.pv-price { border: 1px solid var(--line-strong); border-radius: 16px; padding: 1.1rem; display: grid; gap: .5rem; } .pv-price.pop { border-color: var(--cyan); } .pv-price .amt { font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; } .pv-price ul { margin: 0; padding-left: 1.1rem; color: var(--muted-strong); font-size: .92rem; }

/* Pagos */
.month-nav { display: flex; align-items: center; gap: .6rem; } .month-nav .m { font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; min-width: 9.5ch; text-align: center; }
.sumbar { display: grid; gap: .3rem; padding: 1rem; background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 1rem; }
.sumbar .nums { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-weight: 700; } .sumbar .nums b { font-family: var(--display); font-size: 1.5rem; }
.rowbtns { display: flex; gap: .5rem; flex-wrap: wrap; }
.pay-item { align-items: flex-start; flex-wrap: wrap; } .pay-item .acts { display: flex; gap: .5rem; flex-wrap: wrap; margin-left: calc(42px + .9rem); width: 100%; } @media (min-width: 700px) { .pay-item { flex-wrap: nowrap; align-items: center; } .pay-item .acts { margin-left: auto; width: auto; flex: none; } }
.months { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; } @media (min-width: 560px) { .months { grid-template-columns: repeat(6, 1fr); } }
.mcell { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .6rem .3rem; text-align: center; background: var(--ink); cursor: pointer; display: grid; gap: .15rem; font-size: .8rem; color: var(--muted-strong); min-height: 64px; align-content: center; }
.mcell b { font-size: .9rem; color: var(--white); } .mcell.paid { background: rgba(70,227,161,.14); border-color: rgba(70,227,161,.5); } .mcell.paid em { color: var(--green); font-style: normal; font-weight: 800; }
.mcell.due { border-color: rgba(255,59,125,.55); } .mcell.due em { color: #ff8fb0; font-style: normal; font-weight: 800; }

/* Asistencia */
.att { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem; background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--r); min-height: 64px; cursor: pointer; width: 100%; text-align: left; }
.att .box { width: 32px; height: 32px; border-radius: 10px; border: 2px solid var(--line-strong); display: grid; place-items: center; flex: none; margin-left: auto; transition: background .15s, border-color .15s; } .att .box svg { width: 18px; height: 18px; opacity: 0; color: var(--ink); }
.att[aria-pressed=true] { border-color: rgba(63,225,255,.6); } .att[aria-pressed=true] .box { background: var(--cyan); border-color: var(--cyan); } .att[aria-pressed=true] .box svg { opacity: 1; }
.dots { display: flex; gap: 4px; margin-top: 4px; } .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-hi); } .dots i.p { background: var(--cyan); } .dots i.a { background: var(--magenta); }

/* Semana de clases */
.week { display: grid; gap: .6rem; } @media (min-width: 900px) { .week { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.wday { background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--r); padding: .7rem; display: grid; gap: .5rem; align-content: start; min-height: 80px; } .wday.today { border-color: var(--cyan); }
.wday h4 { font-size: .95rem; color: var(--muted-strong); display: flex; justify-content: space-between; } .wday.today h4 { color: var(--cyan); }
.wcls { border-radius: 10px; background: var(--ink-hi); padding: .5rem .6rem; font-size: .84rem; line-height: 1.25; border: 0; text-align: left; cursor: pointer; color: var(--white); width: 100%; } .wcls b { display: block; font-size: .8rem; color: var(--cyan); } .wcls.off { opacity: .45; }

/* Fotos */
.photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; } @media (min-width: 700px) { .photos { grid-template-columns: repeat(4, 1fr); } }
.photo { position: relative; border-radius: var(--r); overflow: hidden; background: var(--ink-soft); border: 1px solid var(--line); display: grid; }
.photo img { aspect-ratio: 4/5; object-fit: cover; width: 100%; } .photo.off img { opacity: .35; } .photo .cap { padding: .5rem .6rem; font-size: .8rem; color: var(--muted-strong); min-height: 3.2em; overflow-wrap: anywhere; }
.photo .ph-acts { display: flex; gap: .3rem; padding: 0 .4rem .5rem; } .photo .ph-acts button { flex: 1; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--ink); cursor: pointer; display: grid; place-items: center; } .photo .ph-acts svg { width: 17px; height: 17px; }
.upload { display: grid; place-items: center; gap: .4rem; border: 1px dashed var(--cyan-dim); border-radius: var(--r); min-height: 150px; cursor: pointer; text-align: center; padding: 1rem; color: var(--cyan); font-weight: 800; background: rgba(63,225,255,.05); } .upload svg { width: 28px; height: 28px; }
.thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--ink-hi); }

.savebar { position: fixed; z-index: 45; left: .7rem; right: .7rem; bottom: calc(var(--tab-h) + .7rem + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; padding: .7rem .8rem .7rem 1rem; border-radius: 18px; background: var(--ink-hi); border: 1px solid var(--cyan); box-shadow: 0 10px 30px rgba(0,0,0,.6); font-weight: 700; }
.savebar .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); margin-right: .4rem; } .savebar-btns { display: flex; gap: .5rem; margin-left: auto; }
@media (min-width: 900px) { .savebar { left: calc(var(--side-w) + 1.2rem); right: 1.2rem; bottom: 1.2rem; max-width: 760px; margin: 0 auto; } }
.toast { position: fixed; z-index: 100; left: 0; right: 0; margin-inline: auto; width: max-content; bottom: calc(var(--tab-h) + 1rem + env(safe-area-inset-bottom)); translate: 0 20px; opacity: 0; pointer-events: none; display: flex; align-items: center; gap: .9rem; background: var(--white); color: var(--ink); padding: .8rem 1.1rem; border-radius: 14px; font-weight: 700; max-width: calc(100vw - 1.6rem); transition: opacity .25s, translate .25s var(--ease); }
.toast.show { opacity: 1; translate: 0 0; pointer-events: auto; } .toast.bad { background: var(--magenta); } .toast button { background: none; border: 0; font-weight: 900; text-decoration: underline; cursor: pointer; color: inherit; padding: .3rem; }
@media (min-width: 900px) { .toast { bottom: 1.6rem; } }

.detail-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.2rem; flex-wrap: wrap; } .detail-head .ava { width: 64px; height: 64px; font-size: 1.4rem; } .detail-head h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); overflow-wrap: anywhere; }
.kv { display: grid; gap: .1rem; } .kv + .kv { margin-top: .8rem; } .kv .k { font-size: .78rem; color: var(--muted); font-weight: 700; } .kv .v { overflow-wrap: anywhere; }
.steps { display: grid; gap: .6rem; counter-reset: s; } .steps li { list-style: none; display: flex; gap: .8rem; align-items: flex-start; } .steps li::before { counter-increment: s; content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--cyan); color: var(--ink); font-weight: 900; display: grid; place-items: center; font-size: .85rem; }
.steps { padding: 0; margin: 0; }
.gs-results { display: grid; gap: .4rem; max-height: 50svh; overflow-y: auto; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.seg { width: fit-content; justify-self: start; }
.ava.time { width: auto; min-width: 58px; padding: 0 .6rem; border-radius: 12px; font-size: .86rem; height: 42px; }

@media (max-width: 699px) { .detail-head > div:nth-child(2) { flex: 1 1 calc(100% - 90px); } .detail-head > .rowbtns { width: 100%; } .detail-head > .rowbtns .btn { flex: 1; } }
