/* =====================================================================
   Aula360 · Design system
   Color de marca dinámico: --brand / --brand-rgb (se inyecta desde Ajustes)
   ===================================================================== */
:root {
  --brand: #4f46e5; --brand-rgb: 79,70,229;
  --brand-soft: rgba(var(--brand-rgb), .10);
  --brand-softer: rgba(var(--brand-rgb), .06);
  --brand-ink: color-mix(in srgb, var(--brand) 78%, #000);
  --bg: #f5f6fb; --bg-2: #eef0f7; --surface: #ffffff; --surface-2: #f8f9fc; --surface-3: #f1f3f8;
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --faint: #94a3b8;
  --line: #e5e8f0; --line-2: #eef0f5;
  --green: #10b981; --green-bg: #ecfdf5; --green-ink: #047857;
  --amber: #f59e0b; --amber-bg: #fffbeb; --amber-ink: #b45309;
  --rose: #f43f5e; --rose-bg: #fff1f2; --rose-ink: #be123c;
  --blue: #3b82f6; --blue-bg: #eff6ff; --blue-ink: #1d4ed8;
  --violet: #8b5cf6; --violet-bg: #f5f3ff; --violet-ink: #6d28d9;
  --gray-bg: #f1f5f9; --gray-ink: #475569;
  --radius: 16px; --radius-sm: 10px; --radius-lg: 22px;
  --shadow-xs: 0 1px 2px rgba(15,23,42,.05);
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 2px 8px rgba(15,23,42,.04);
  --shadow: 0 4px 6px -2px rgba(15,23,42,.05), 0 12px 24px -6px rgba(15,23,42,.08);
  --shadow-lg: 0 24px 48px -12px rgba(15,23,42,.18);
  --ease: cubic-bezier(.2,.8,.2,1);
  --sidebar-w: 268px;
  color-scheme: light;
}
[data-mode="dark"] {
  --bg: #0b0f1a; --bg-2: #0f1422; --surface: #121827; --surface-2: #161d2e; --surface-3: #1c2436;
  --ink: #e8ecf5; --ink-2: #c3cad8; --muted: #8b95a9; --faint: #5d6880;
  --line: #232c40; --line-2: #1c2436;
  --green-bg: rgba(16,185,129,.12); --green-ink: #34d399;
  --amber-bg: rgba(245,158,11,.12); --amber-ink: #fbbf24;
  --rose-bg: rgba(244,63,94,.12); --rose-ink: #fb7185;
  --blue-bg: rgba(59,130,246,.14); --blue-ink: #60a5fa;
  --violet-bg: rgba(139,92,246,.14); --violet-ink: #a78bfa;
  --gray-bg: rgba(148,163,184,.12); --gray-ink: #a5b0c2;
  --brand-soft: rgba(var(--brand-rgb), .18); --brand-softer: rgba(var(--brand-rgb), .10);
  --brand-ink: color-mix(in srgb, var(--brand) 60%, #fff);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow: 0 8px 24px -8px rgba(0,0,0,.5); --shadow-lg: 0 24px 60px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 14.5px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 .8em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
small, .small { font-size: .82rem; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.ic { width: 18px; height: 18px; flex-shrink: 0; }
.ic-xs { width: 14px; height: 14px; } .ic-sm { width: 16px; height: 16px; } .ic-lg { width: 24px; height: 24px; } .ic-xl { width: 32px; height: 32px; }
::selection { background: rgba(var(--brand-rgb), .25); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------- Shell */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); flex-shrink: 0; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); padding: 18px 14px; z-index: 40; }
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px 18px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 15px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #ec4899)); box-shadow: 0 8px 20px -6px rgba(var(--brand-rgb), .6); }
.brand-logo { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--muted); font-size: 12px; }
.nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -4px; padding: 0 4px; }
.nav-heading { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 16px 12px 6px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px; color: var(--ink-2); font-weight: 600; font-size: 14px; position: relative; transition: background .2s, color .2s; }
.nav-link .ic { color: var(--faint); transition: color .2s, transform .3s var(--ease); }
.nav-link:hover { background: var(--surface-3); text-decoration: none; color: var(--ink); }
.nav-link:hover .ic { transform: scale(1.1); color: var(--ink-2); }
.nav-link.active { background: var(--brand-soft); color: var(--brand-ink); }
.nav-link.active .ic { color: var(--brand); }
.nav-link.active::before { content: ''; position: absolute; left: -4px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--brand); }
.nav-badge { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; background: var(--brand); color: #fff; padding: 1px 7px; border-radius: 99px; min-width: 20px; text-align: center; }
.sidebar-foot { padding: 12px 8px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.year-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--surface-3); padding: 6px 10px; border-radius: 99px; width: max-content; }
.powered { color: var(--faint); font-size: 11px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 12px 28px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.scrolled { border-bottom-color: var(--line); }
.crumbs { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.crumbs a { color: var(--muted); } .crumbs span { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.search-trigger { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 7px 10px 7px 12px; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; width: 260px; transition: border-color .2s, box-shadow .2s; }
.search-trigger:hover { border-color: rgba(var(--brand-rgb), .4); box-shadow: 0 0 0 4px var(--brand-softer); }
.search-trigger span { flex: 1; text-align: left; }
kbd { font: 600 11px/1 inherit; font-family: inherit; background: var(--surface-3); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 3px 6px; color: var(--muted); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .2s, transform .15s; }
.icon-btn:hover { background: var(--surface-3); }
.icon-btn:active { transform: scale(.94); }
.dot-badge { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--rose); color: #fff; font: 700 10px/17px inherit; font-style: normal; box-shadow: 0 0 0 2px var(--bg); animation: pop .4s var(--ease); }
.user-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 6px 4px 4px; border-radius: 99px; cursor: pointer; font: inherit; font-weight: 600; color: var(--ink); }
.user-btn:hover { background: var(--surface-3); }
[data-mode="light"] .when-dark, [data-mode="dark"] .when-light { display: none; }
.page { padding: 8px 28px 48px; max-width: 1440px; width: 100%; margin: 0 auto; animation: pageIn .45s var(--ease) both; }
.banner { display: flex; align-items: center; gap: 10px; margin: 10px 28px 0; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 13.5px; }
.banner-warn { background: var(--amber-bg); color: var(--amber-ink); }
.sidebar-scrim { display: none; }
.only-mobile { display: none; }

/* ---------------------------------------------------------- Dropdowns */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: all .18s var(--ease); z-index: 60; }
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a, .dropdown-menu button:not(.link-btn) { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 9px; color: var(--ink-2); font: inherit; font-weight: 500; background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:not(.link-btn):hover { background: var(--surface-3); text-decoration: none; color: var(--ink); }
.dropdown-menu form { margin: 0; }
.dropdown-menu hr { margin: 6px 0; }
.dm-user { display: flex; gap: 10px; align-items: center; padding: 8px 10px 10px; }
.dm-user small { display: block; color: var(--muted); }
.dm-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; }
.dm-foot { justify-content: center; font-weight: 600 !important; color: var(--brand-ink) !important; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px !important; margin-top: 4px; }
.notif-menu { width: 380px; }
.notif-list { max-height: 400px; overflow-y: auto; }
.notif-item { display: flex !important; gap: 12px; align-items: flex-start !important; padding: 10px !important; }
.notif-item .ni-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.notif-item.unread { background: var(--brand-softer); }
.notif-item strong { display: block; font-size: 13.5px; color: var(--ink); font-weight: 600; }
.notif-item small { color: var(--muted); }
.link-btn { background: none; border: 0; color: var(--brand-ink); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 0; }
.link-btn:hover { text-decoration: underline; }

/* ---------------------------------------------------------- Page header & layout */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 14px 0 24px; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 6px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.span-2 { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 18px; } .mb { margin-bottom: 18px; } .mt-sm { margin-top: 8px; }
.text-right { text-align: right; } .center { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------- Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-head h2, .card-head h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.card-head h2 .ic, .card-head h3 .ic { color: var(--brand); }
.card-body { padding: 20px; }
.card-body.tight { padding: 8px; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--line-2); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.card-link { display: block; color: inherit; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card-link:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(var(--brand-rgb), .3); }

.hero { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 28px 30px; color: #fff; background: radial-gradient(1200px 300px at 100% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(120deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 60%, #ec4899) 100%); box-shadow: 0 18px 40px -16px rgba(var(--brand-rgb), .55); margin: 14px 0 22px; }
.hero h1 { color: #fff; font-size: 1.9rem; }
.hero p { color: rgba(255,255,255,.85); margin: 6px 0 0; max-width: 620px; }
.hero .hero-art { position: absolute; right: 18px; bottom: -6px; height: 150px; opacity: .95; pointer-events: none; }
.hero-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; position: relative; }
.hero .btn-glass { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.hero .btn-glass:hover { background: rgba(255,255,255,.28); }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(2px); background: rgba(255,255,255,.12); animation: float 9s ease-in-out infinite; }

/* Stats */
.stat { padding: 18px 20px; position: relative; overflow: hidden; }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { color: var(--muted); font-weight: 600; font-size: 13px; }
.stat-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--c-bg, var(--brand-soft)); color: var(--c, var(--brand)); }
.stat-value { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin-top: 8px; line-height: 1.1; }
.stat-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.stat::after { content: ''; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--c-bg, var(--brand-softer)); opacity: .6; }
.c-green { --c: var(--green); --c-bg: var(--green-bg); } .c-amber { --c: var(--amber); --c-bg: var(--amber-bg); }
.c-rose { --c: var(--rose); --c-bg: var(--rose-bg); } .c-blue { --c: var(--blue); --c-bg: var(--blue-bg); } .c-violet { --c: var(--violet); --c-bg: var(--violet-bg); }

/* ---------------------------------------------------------- Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 650; font-size: 14px; cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { text-decoration: none; border-color: color-mix(in srgb, var(--line) 50%, var(--ink-2)); box-shadow: var(--shadow-xs); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(var(--brand-rgb), .7), inset 0 1px 0 rgba(255,255,255,.15); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); border-color: transparent; box-shadow: 0 10px 22px -8px rgba(var(--brand-rgb), .8); }
.btn-soft { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.btn-soft:hover { background: rgba(var(--brand-rgb), .16); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-3); border-color: transparent; box-shadow: none; }
.btn-danger { background: var(--rose-bg); border-color: transparent; color: var(--rose-ink); }
.btn-danger:hover { background: var(--rose); color: #fff; }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-warn { background: var(--amber-bg); border-color: transparent; color: var(--amber-ink); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; gap: 6px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn.loading::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* ---------------------------------------------------------- Chips / badges / avatars */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--gray-bg); color: var(--gray-ink); }
.chip-green { background: var(--green-bg); color: var(--green-ink); } .chip-amber { background: var(--amber-bg); color: var(--amber-ink); }
.chip-rose { background: var(--rose-bg); color: var(--rose-ink); } .chip-blue { background: var(--blue-bg); color: var(--blue-ink); }
.chip-violet { background: var(--violet-bg); color: var(--violet-ink); } .chip-gray { background: var(--gray-bg); color: var(--gray-ink); }
.chip-brand { background: var(--brand-soft); color: var(--brand-ink); }
.chip-outline { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--brand)); display: inline-block; flex-shrink: 0; }
.avatar { --h: 240; width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0; overflow: hidden; font-weight: 700; font-size: 13px; color: hsl(var(--h) 55% 35%); background: hsl(var(--h) 80% 92%); }
[data-mode="dark"] .avatar { color: hsl(var(--h) 80% 80%); background: hsl(var(--h) 35% 22%); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 30px; height: 30px; font-size: 11.5px; } .avatar-xs { width: 24px; height: 24px; font-size: 10px; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; } .avatar-xl { width: 88px; height: 88px; font-size: 28px; }
.avatars { display: flex; } .avatars .avatar { box-shadow: 0 0 0 2px var(--surface); margin-left: -8px; } .avatars .avatar:first-child { margin-left: 0; }

/* ---------------------------------------------------------- Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-weight: 650; font-size: 13px; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea, input[type=text].input, input[type=email].input { width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14.5px; transition: border-color .2s, box-shadow .2s; }
.textarea { height: auto; min-height: 110px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--line) 60%, var(--muted)); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .14); }
.input-sm { height: 34px; font-size: 13.5px; border-radius: 9px; }
.input-icon { position: relative; }
.input-icon .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-icon .input { padding-left: 38px; }
input[type=color].input { padding: 4px; width: 56px; cursor: pointer; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 40px; height: 23px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; flex-shrink: 0; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(17px); }
.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { position: relative; }
.check-chip input { position: absolute; opacity: 0; }
.check-chip span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 99px; font-weight: 600; font-size: 13px; cursor: pointer; background: var(--surface); transition: all .18s; user-select: none; }
.check-chip span:hover { border-color: rgba(var(--brand-rgb), .5); }
.check-chip input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.check-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .25); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding-top: 6px; }

/* Segmented control / tabs */
.seg { display: inline-flex; background: var(--surface-3); padding: 4px; border-radius: 12px; gap: 2px; flex-wrap: wrap; }
.seg a, .seg button, .seg label span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 9px; color: var(--muted); font: inherit; font-weight: 650; font-size: 13px; background: none; border: 0; cursor: pointer; transition: all .2s; }
.seg a:hover { text-decoration: none; color: var(--ink); }
.seg .active, .seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg label { position: relative; } .seg label input { position: absolute; opacity: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; color: var(--muted); font-weight: 650; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.active { color: var(--brand-ink); border-bottom-color: var(--brand); }
.tabs a .count { font-size: 11px; background: var(--surface-3); padding: 0 7px; border-radius: 99px; }

/* ---------------------------------------------------------- Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table th:first-child { border-top-left-radius: var(--radius); } .table th:last-child { border-top-right-radius: var(--radius); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .who { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.table .who strong { display: block; font-weight: 650; }
.table .who small { color: var(--muted); }
.table-actions { display: flex; gap: 4px; justify-content: flex-end; }

/* ---------------------------------------------------------- Lists, feed, timeline */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line-2); color: inherit; transition: background .15s; }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover, button.list-item:hover { background: var(--surface-2); text-decoration: none; }
button.list-item { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line-2); text-align: left; font: inherit; cursor: pointer; }
button.list-item:last-child { border-bottom: 0; }
.list-item .li-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: var(--c-bg, var(--brand-soft)); color: var(--c, var(--brand)); }
.list-item strong { display: block; font-weight: 650; color: var(--ink); }
.list-item small { color: var(--muted); }
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item::before { content: ''; position: absolute; left: -23px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--c, var(--brand)); }
.tl-item small { color: var(--muted); }

/* ---------------------------------------------------------- Groups & section tiles */
.level-title { display: flex; align-items: center; gap: 10px; margin: 28px 0 14px; }
.level-title h2 { font-size: 1.05rem; }
.level-title .line { flex: 1; height: 1px; background: var(--line); }
.group-card { --c: var(--brand); position: relative; overflow: hidden; padding: 20px; }
.group-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 40%, #fff)); }
.group-card .gc-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #000 0%) ); box-shadow: 0 8px 18px -8px var(--c); transition: transform .4s var(--ease); }
.group-card:hover .gc-icon { transform: rotate(-8deg) scale(1.08); }
.group-card h3 { margin-top: 14px; font-size: 1.1rem; }
.group-card .gc-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; gap: 10px; }
.group-card .gc-bg { position: absolute; right: -18px; top: -18px; width: 120px; height: 120px; color: var(--c); opacity: .07; transition: transform .6s var(--ease); }
.group-card:hover .gc-bg { transform: rotate(15deg) scale(1.1); }
.group-hero { --c: var(--brand); position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 26px 28px; background: linear-gradient(120deg, color-mix(in srgb, var(--c) 14%, var(--surface)), var(--surface) 70%); border: 1px solid var(--line); margin: 14px 0 22px; }
.group-hero .gh-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: 0 14px 28px -12px var(--c); }
.group-hero .gh-icon .ic { width: 30px; height: 30px; }
.tile { --c: var(--brand); display: flex; flex-direction: column; gap: 12px; padding: 20px; position: relative; overflow: hidden; }
.tile .t-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); transition: transform .35s var(--ease); }
.card-link:hover .t-icon { transform: scale(1.1) rotate(-6deg); }
.tile h3 { font-size: 1rem; }
.tile p { color: var(--muted); font-size: 13px; margin: 0; }
.tile .t-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--muted); }
.tile .t-arrow { position: absolute; right: 16px; top: 20px; color: var(--faint); transition: transform .3s var(--ease), color .2s; }
.card-link:hover .t-arrow { transform: translateX(4px); color: var(--c); }

/* Entries */
.entry-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.entry-card h3 { font-size: 1rem; }
.entry-card .ec-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.entry-card .ec-excerpt { color: var(--ink-2); font-size: 13.5px; margin: 0; }
.prose { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.prose h2, .prose h3 { margin: 1.2em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose blockquote { margin: 1em 0; padding: 8px 16px; border-left: 3px solid var(--brand); background: var(--brand-softer); border-radius: 0 10px 10px 0; }
.prose mark { background: color-mix(in srgb, var(--amber) 35%, transparent); color: inherit; padding: 0 3px; border-radius: 3px; }
.prose a { text-decoration: underline; }

/* Files */
.file-list { display: grid; gap: 8px; }
.file-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.file-item:hover { border-color: rgba(var(--brand-rgb), .35); box-shadow: var(--shadow-xs); }
.file-item .fi-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--rose-bg); color: var(--rose); flex-shrink: 0; }
.file-item .fi-icon.img { background: var(--violet-bg); color: var(--violet); } .file-item .fi-icon.vid { background: var(--blue-bg); color: var(--blue); } .file-item .fi-icon.doc { background: var(--gray-bg); color: var(--gray-ink); }
.file-item .fi-name { flex: 1; min-width: 0; }
.file-item .fi-name strong { display: block; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.file-item .fi-name small { color: var(--muted); }
.file-item .progress { margin-top: 6px; }
.link-preview { margin-top: 8px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); animation: pageIn .35s var(--ease); }
.link-preview iframe { width: 100%; height: 560px; border: 0; display: block; }
.storage-option { display: block; position: relative; cursor: pointer; }
.storage-option input { position: absolute; opacity: 0; }
.storage-option .card { padding: 18px; height: 100%; transition: border-color .2s, box-shadow .2s; }
.storage-option input:checked + .card { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .14); }
.pdf-frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Dropzone */
.dropzone { position: relative; border: 2px dashed color-mix(in srgb, var(--line) 50%, var(--muted)); border-radius: 16px; padding: 28px 20px; text-align: center; background: var(--surface-2); cursor: pointer; transition: all .25s var(--ease); }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-softer); }
.dropzone.over { transform: scale(1.01); }
.dropzone .dz-icon { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); transition: transform .35s var(--ease); }
.dropzone:hover .dz-icon { transform: translateY(-4px); }
.dropzone strong { display: block; color: var(--ink); }
.dropzone small { color: var(--muted); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-files { margin-top: 12px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery a { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-3); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
.gallery a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(0,0,0,.35)); opacity: 0; transition: opacity .3s; }
.gallery a:hover::after { opacity: 1; }
.thumbs { display: flex; gap: 6px; }
.thumbs img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,8,15,.92); display: grid; place-items: center; animation: fadeIn .2s; }
.lightbox img { max-width: 90vw; max-height: 84vh; border-radius: 12px; box-shadow: var(--shadow-lg); animation: zoomIn .3s var(--ease); }
.lightbox .icon-btn { position: absolute; color: #fff; background: rgba(255,255,255,.1); width: 46px; height: 46px; }
.lightbox .icon-btn:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 20px; right: 20px; } .lb-prev { left: 20px; top: 50%; } .lb-next { right: 20px; top: 50%; }
.lb-caption { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: 13px; }

/* ---------------------------------------------------------- Editor */
.editor { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.editor:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .14); }
.editor-toolbar { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); flex-wrap: wrap; }
.editor-toolbar button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; border-radius: 8px; color: var(--ink-2); cursor: pointer; }
.editor-toolbar button:hover { background: var(--surface-3); }
.editor-toolbar button.on { background: var(--brand-soft); color: var(--brand); }
.editor-toolbar .sep { width: 1px; background: var(--line); margin: 4px 4px; }
.editor-area { min-height: 220px; max-height: 60vh; overflow-y: auto; padding: 16px 18px; outline: none; }
.editor-area:empty::before { content: attr(data-placeholder); color: var(--faint); pointer-events: none; }

/* ---------------------------------------------------------- Comments */
.comment { display: flex; gap: 12px; }
.comment .bubble { flex: 1; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 4px 14px 14px 14px; padding: 10px 14px; }
.comment .bubble p:last-child { margin: 0; }
.comment.status .bubble { background: transparent; border-style: dashed; color: var(--muted); font-size: 13px; }
.comment-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.comment-head strong { font-size: 13.5px; } .comment-head small { color: var(--muted); }

/* ---------------------------------------------------------- Progress */
.progress { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 50%, #ec4899)); width: 0; transition: width 1s var(--ease); }
.progress.green > i { background: var(--green); } .progress.amber > i { background: var(--amber); } .progress.rose > i { background: var(--rose); }
.ring { --p: 0; --c: var(--brand); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-3) 0); position: relative; font-weight: 800; font-size: 14px; transition: --p 1s; }
.ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar i { width: 100%; max-width: 46px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--c, var(--brand)), color-mix(in srgb, var(--c, var(--brand)) 55%, transparent)); height: 0; transition: height 1s var(--ease); position: relative; }
.bars .bar i::after { content: attr(data-v); position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--ink-2); font-style: normal; }
.bars .bar small { font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.2; }

/* Compliance matrix */
.matrix { border-collapse: separate; border-spacing: 4px; }
.matrix th { font-size: 11.5px; color: var(--muted); font-weight: 650; padding: 4px; white-space: nowrap; }
.matrix th.rowh { text-align: left; padding-right: 12px; font-size: 13px; color: var(--ink); }
.matrix td { padding: 0; }
.cell { display: grid; place-items: center; width: 40px; height: 34px; border-radius: 8px; font-size: 12px; font-weight: 700; transition: transform .15s; }
a.cell:hover { transform: scale(1.12); text-decoration: none; }
.cell-aprobado { background: var(--green); color: #fff; } .cell-enviado, .cell-en_revision { background: var(--amber); color: #fff; }
.cell-observado { background: var(--rose); color: #fff; } .cell-borrador { background: var(--gray-bg); color: var(--gray-ink); }
.cell-missing { background: var(--surface-3); color: var(--faint); border: 1px dashed var(--line); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

/* ---------------------------------------------------------- Calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.cal-dow { padding: 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 112px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 4px; transition: background .15s; }
.cal-day:hover { background: var(--surface-2); }
.cal-day.other { background: var(--surface-2); } .cal-day.other .cal-num { color: var(--faint); }
.cal-day.weekend { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.cal-num { font-size: 13px; font-weight: 700; color: var(--ink-2); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.today .cal-num { background: var(--brand); color: #fff; box-shadow: 0 4px 12px -2px rgba(var(--brand-rgb), .6); }
.cal-ev { display: block; font-size: 11.5px; font-weight: 650; padding: 3px 7px; border-radius: 6px; background: var(--c-bg, var(--brand-soft)); color: var(--c-ink, var(--brand-ink)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; border-left: 3px solid var(--c, var(--brand)); }
.cal-ev:hover { text-decoration: none; filter: brightness(.97); }
.cat-acto { --c: var(--violet); --c-bg: var(--violet-bg); --c-ink: var(--violet-ink); }
.cat-reunion { --c: var(--blue); --c-bg: var(--blue-bg); --c-ink: var(--blue-ink); }
.cat-feriado { --c: var(--rose); --c-bg: var(--rose-bg); --c-ink: var(--rose-ink); }
.cat-salida { --c: var(--green); --c-bg: var(--green-bg); --c-ink: var(--green-ink); }
.cat-evaluacion { --c: var(--amber); --c-bg: var(--amber-bg); --c-ink: var(--amber-ink); }
.date-badge { width: 52px; flex-shrink: 0; border-radius: 12px; overflow: hidden; text-align: center; border: 1px solid var(--line); background: var(--surface); }
.date-badge b { display: block; background: var(--c, var(--brand)); color: #fff; font-size: 10.5px; text-transform: uppercase; padding: 2px 0; letter-spacing: .05em; }
.date-badge span { display: block; font-size: 19px; font-weight: 800; padding: 3px 0; }

/* ---------------------------------------------------------- Attendance */
.att-btns { display: inline-flex; gap: 4px; }
.att-btns label { position: relative; }
.att-btns input { position: absolute; opacity: 0; }
.att-btns span { display: grid; place-items: center; width: 36px; height: 34px; border-radius: 9px; border: 1px solid var(--line); font-weight: 750; font-size: 13px; color: var(--muted); cursor: pointer; transition: all .15s; background: var(--surface); }
.att-btns span:hover { border-color: var(--muted); }
.att-btns input:checked + span.s-P { background: var(--green); border-color: var(--green); color: #fff; }
.att-btns input:checked + span.s-A { background: var(--rose); border-color: var(--rose); color: #fff; }
.att-btns input:checked + span.s-T { background: var(--amber); border-color: var(--amber); color: #fff; }
.att-btns input:checked + span.s-J { background: var(--blue); border-color: var(--blue); color: #fff; }
.att-btns input:checked + span { animation: pop .3s var(--ease); }

/* Grades */
.grade-input { width: 74px; height: 38px; text-align: center; font-weight: 750; font-size: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-family: inherit; transition: all .2s; }
.grade-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .14); }
.grade-input.saved { border-color: var(--green); background: var(--green-bg); }
.grade-input.low { color: var(--rose-ink); } .grade-input.high { color: var(--green-ink); }

/* ---------------------------------------------------------- Empty / skeleton */
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty .empty-art { width: 160px; margin: 0 auto 16px; }
.empty .empty-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.empty p { max-width: 380px; margin: 0 auto 16px; }
.skeleton-lines { padding: 10px; display: grid; gap: 10px; }
.skeleton-lines i { display: block; height: 42px; border-radius: 10px; background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }

/* ---------------------------------------------------------- Modal */
.modal { border: 0; padding: 0; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); }
.modal-lg { width: min(820px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(10,14,25,.5); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .3s var(--ease); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-body { padding: 22px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line-2); background: var(--surface-2); position: sticky; bottom: 0; }

/* ---------------------------------------------------------- Toasts */
.toasts { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 300; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 280px; max-width: 420px; padding: 13px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; animation: toastIn .45s var(--ease); }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
.toast-success .ic { color: var(--green); } .toast-error .ic { color: var(--rose); } .toast-info .ic { color: var(--blue); }

/* ---------------------------------------------------------- Command palette */
.cmdk { position: fixed; inset: 0; z-index: 250; background: rgba(10,14,25,.45); backdrop-filter: blur(4px); display: flex; justify-content: center; padding-top: 12vh; animation: fadeIn .15s; }
.cmdk-box { width: min(640px, calc(100vw - 32px)); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; height: max-content; animation: modalIn .25s var(--ease); }
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cmdk-input input { flex: 1; border: 0; background: none; outline: none; font: inherit; font-size: 16px; color: var(--ink); }
.cmdk-results { max-height: 420px; overflow-y: auto; padding: 8px; }
.cmdk-group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 10px 12px 6px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--ink); }
.cmdk-item small { color: var(--muted); margin-left: auto; }
.cmdk-item.sel, .cmdk-item:hover { background: var(--brand-soft); text-decoration: none; }
.cmdk-item .ic { color: var(--muted); }

/* ---------------------------------------------------------- Auth */
.auth-body { min-height: 100vh; }
.auth-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-art { position: relative; overflow: hidden; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(900px 500px at 10% 10%, rgba(255,255,255,.18), transparent 60%), linear-gradient(140deg, var(--brand), color-mix(in srgb, var(--brand) 45%, #ec4899) 70%, color-mix(in srgb, var(--brand) 40%, #f59e0b)); }
.auth-art h1 { color: #fff; font-size: 2.6rem; line-height: 1.1; max-width: 520px; }
.auth-art p { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 460px; }
.auth-art .illus { position: absolute; right: -40px; bottom: -20px; width: min(640px, 80%); pointer-events: none; }
.auth-art .brand-row { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; position: relative; }
.auth-art .brand-row img { height: 48px; width: auto; background: rgba(255,255,255,.95); border-radius: 12px; padding: 4px; }
.auth-art .brand-mark { background: rgba(255,255,255,.2); box-shadow: none; backdrop-filter: blur(6px); }
.auth-form { display: grid; place-items: center; padding: 40px 24px; background: var(--surface); }
.auth-card { width: 100%; max-width: 400px; animation: pageIn .6s var(--ease) both; }
.auth-card h2 { font-size: 1.7rem; font-weight: 800; }
.auth-card .sub { color: var(--muted); margin: 8px 0 28px; }
.auth-card .field { margin-bottom: 16px; }
.alert { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 13.5px; margin-bottom: 16px; }
.alert-error { background: var(--rose-bg); color: var(--rose-ink); } .alert-info { background: var(--blue-bg); color: var(--blue-ink); } .alert-success { background: var(--green-bg); color: var(--green-ink); } .alert-warn { background: var(--amber-bg); color: var(--amber-ink); }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }

/* Suspended / error */
.center-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(800px 400px at 50% 0%, var(--brand-softer), transparent), var(--bg); }
.center-card { max-width: 520px; text-align: center; padding: 40px 32px; }
.center-card .big-icon { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 26px; display: grid; place-items: center; }
.err-code { font-size: 5rem; font-weight: 800; letter-spacing: -.05em; background: linear-gradient(135deg, var(--brand), #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* ---------------------------------------------------------- Animations */
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(4deg); } }
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.float { animation: float 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- Responsive */
@media (max-width: 1200px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .sidebar-scrim { position: fixed; inset: 0; background: rgba(10,14,25,.4); z-index: 35; }
  .sidebar.open + .sidebar-scrim { display: block; }
  .only-mobile { display: inline-grid; }
  .search-trigger { width: auto; } .search-trigger span, .search-trigger kbd { display: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-split { grid-template-columns: 1fr; } .auth-art { min-height: 240px; padding: 28px; } .auth-art h1 { font-size: 1.8rem; } .auth-art .illus { width: 300px; opacity: .5; }
}
@media (max-width: 640px) {
  .topbar, .page { padding-left: 16px; padding-right: 16px; } .banner { margin: 10px 16px 0; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: minmax(0, 1fr); } .span-2 { grid-column: auto; }
  .hide-mobile { display: none !important; } .crumbs a, .crumbs .ic { display: none; }
  h1 { font-size: 1.45rem; } .hero { padding: 22px; } .hero h1 { font-size: 1.5rem; } .hero .hero-art { display: none; }
  .notif-menu { width: calc(100vw - 32px); position: fixed; left: 16px; right: 16px; top: 62px; }
  .table th, .table td { padding: 10px 12px; } .cal-day { min-height: 70px; padding: 4px; } .cal-ev { font-size: 0; padding: 0; height: 6px; border-left-width: 0; }
  .toasts { left: 16px; right: 16px; bottom: 16px; } .toast { min-width: 0; }
}

/* ---------------------------------------------------------- Subida rápida */
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-item { --c: var(--brand); display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); font-weight: 650; font-size: 14px; background: var(--surface); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.quick-item:hover { text-decoration: none; border-color: var(--c); transform: translateY(-2px); box-shadow: var(--shadow); }
.quick-item span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }

/* ---------------------------------------------------------- Navegación inferior (celular) */
.bottom-nav { display: none; }
.only-mobile-block { display: none; }
.mobile-actions { display: none; }
@media (max-width: 960px) {
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; justify-content: space-around; align-items: center; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .bottom-nav a, .bottom-nav button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; background: none; border: 0; color: var(--muted); font: inherit; font-size: 11px; font-weight: 650; cursor: pointer; }
  .bottom-nav a:hover { text-decoration: none; }
  .bottom-nav .active { color: var(--brand); }
  .bottom-nav .ic { width: 22px; height: 22px; }
  .bottom-nav .bn-main { flex: 0 0 auto; width: 54px; height: 54px; margin-top: -26px; border-radius: 18px; color: #fff; justify-content: center; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #ec4899)); box-shadow: 0 10px 24px -8px rgba(var(--brand-rgb), .8); transition: transform .2s var(--ease); }
  .bottom-nav .bn-main:active { transform: scale(.92); }
  .bottom-nav .bn-main .ic { width: 26px; height: 26px; }
  .bn-dot { position: absolute; top: 4px; left: calc(50% + 6px); width: 8px; height: 8px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 2px var(--surface); }
  .page { padding-bottom: 110px; }
  .toasts { bottom: 86px; }
  .only-mobile-block { display: block; }
  .mobile-actions { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 44; padding: 10px 16px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .mobile-actions .btn { flex: 1; }
  body:has(.mobile-actions) .page { padding-bottom: 180px; }
  body:has(.mobile-actions) .toasts { bottom: 150px; }
  .desktop-actions { display: none !important; }
}
@media (max-width: 640px) {
  .grid-4:has(> .stat), .grid-3:has(> .stat), .grid-2:has(> .stat) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; } .stat-value { font-size: 1.55rem; } .stat-icon { width: 34px; height: 34px; } .stat-label { font-size: 12px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-day { min-height: 54px; }
  .page-head { margin-bottom: 16px; }
  .page-head .actions .btn { flex: 1; }
}
.table td.nowrap, .table .ci { white-space: nowrap; }

/* ---------------------------------------------------------- Print */
@media print {
  .sidebar, .topbar, .no-print, .toasts, .banner { display: none !important; }
  body { background: #fff; } .page { padding: 0; max-width: none; } .card { box-shadow: none; break-inside: avoid; }
}

/* ---------------------------------------------------------- Videos: descarga y publicación */
.video-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2, var(--surface)); }
.video-bar .fi-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-bg); color: var(--blue); flex-shrink: 0; }
.video-bar .fi-name { flex: 1; min-width: 0; } .video-bar .fi-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .video-bar .fi-name small { color: var(--muted); }
.steps-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.steps-mini li { display: flex; align-items: center; gap: 10px; color: var(--ink-2, var(--ink)); }
.steps-mini li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.steps-mini li.done { color: var(--muted); text-decoration: line-through; } .steps-mini li.done span { background: var(--green-bg); color: var(--green-ink); }
.publish-card.attention { animation: attention 1.4s ease 2; border-color: rgba(var(--brand-rgb), .6); }
@keyframes attention { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0); } 40% { box-shadow: 0 0 0 8px rgba(var(--brand-rgb), .18); } }
@media (max-width: 640px) { .video-bar { flex-wrap: wrap; } .video-bar .btn-primary { width: 100%; } }

/* ---------------------------------------------------------- Plazos */
.cell { position: relative; }
.cell.is-late::after { content: ''; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 2px var(--surface); }
.cell-overdue { background: var(--rose-bg); color: var(--rose-ink); border: 1px dashed var(--rose); }
.due-list .list-item .when { font-size: 12px; font-weight: 600; white-space: nowrap; }
.due-list .when.overdue { color: var(--rose-ink); } .due-list .when.soon { color: var(--amber-ink); }
/* ---------------------------------------------------------- Plantillas */
.template-card { border-top: 3px solid var(--c); transition: transform .2s, box-shadow .2s; }
.template-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg, 0 12px 30px rgba(0,0,0,.08)); }
.template-card.is-editing { outline: 2px solid rgba(var(--brand-rgb), .45); }
.template-card h3 { margin: 0; }
.tc-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.tc-preview { position: relative; max-height: 150px; overflow: hidden; font-size: 12.5px; padding: 10px 12px; border-radius: 10px; background: var(--surface-3); color: var(--muted); pointer-events: none; }
.tc-preview::after { content: ''; position: absolute; inset: auto 0 0 0; height: 50px; background: linear-gradient(transparent, var(--surface-3)); }
.tc-preview h2, .tc-preview h3 { font-size: 13px; margin: 6px 0 2px; color: var(--ink); }
.tc-preview p, .tc-preview ul, .tc-preview ol { margin: 0 0 4px; }
.tpl-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.tpl-pick a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .15s; }
.tpl-pick a:hover { border-color: rgba(var(--brand-rgb), .5); transform: translateY(-1px); }
.tpl-pick a small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.3; }
/* ---------------------------------------------------------- Recorridos guiados */
.tour-root { position: fixed; inset: 0; z-index: 1200; pointer-events: none; opacity: 0; transition: opacity .3s; }
.tour-root.on { pointer-events: auto; opacity: 1; }
.tour-veil { position: absolute; inset: 0; background: rgba(15, 23, 42, .62); opacity: 0; transition: opacity .35s; backdrop-filter: blur(2px); }
.tour-root.is-center .tour-veil { opacity: 1; }
.tour-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 200vmax rgba(15, 23, 42, .62); transition: top .45s cubic-bezier(.2,.8,.2,1), left .45s cubic-bezier(.2,.8,.2,1), width .45s cubic-bezier(.2,.8,.2,1), height .45s cubic-bezier(.2,.8,.2,1), opacity .3s; pointer-events: none; }
.tour-spot i { position: absolute; inset: -4px; border-radius: 17px; border: 2px solid rgba(var(--brand-rgb), .9); animation: tourPulse 1.8s ease-out infinite; }
.tour-root.is-center .tour-spot { opacity: 0; }
@keyframes tourPulse { 0% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), .55); } 70% { box-shadow: 0 0 0 14px rgba(var(--brand-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0); } }
.tour-pop { position: fixed; width: min(380px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); border-radius: 20px; box-shadow: 0 24px 60px rgba(15, 23, 42, .35), 0 0 0 1px var(--line); overflow: hidden; transition: top .45s cubic-bezier(.2,.8,.2,1), left .45s cubic-bezier(.2,.8,.2,1); }
.tour-pop.in { animation: tourIn .42s cubic-bezier(.2,.9,.25,1.15); }
@keyframes tourIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.tour-root.is-center .tour-pop { top: 50% !important; left: 50% !important; width: min(520px, calc(100vw - 24px)); transform: translate(-50%, -50%); animation: none; }
.tour-root.is-center .tour-pop.in { animation: tourInCenter .5s cubic-bezier(.2,.9,.25,1.12); }
@keyframes tourInCenter { from { opacity: 0; transform: translate(-50%, -46%) scale(.94); } to { opacity: 1; transform: translate(-50%, -50%); } }
.tour-art { position: relative; display: grid; place-items: center; padding: 18px 18px 0; background: radial-gradient(120% 90% at 50% 0%, rgba(var(--brand-rgb), .16), transparent 70%), linear-gradient(180deg, var(--brand-softer, rgba(var(--brand-rgb), .06)), transparent); }
.tour-art img { width: 100%; max-height: 250px; object-fit: contain; animation: tourFloat 5s ease-in-out infinite; filter: drop-shadow(0 14px 22px rgba(var(--brand-rgb), .18)); }
.tour-pop.is-final .tour-art img { max-height: 190px; }
@keyframes tourFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.tour-body { padding: 18px 22px 6px; }
.tour-kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.tour-body h3 { margin: 0 0 6px; font-size: 1.15rem; line-height: 1.3; }
.tour-pop.has-art .tour-body { text-align: center; } .tour-pop.has-art .tour-body h3 { font-size: 1.4rem; }
.tour-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.tour-body b { color: var(--ink); }
.tour-foot { display: flex; align-items: center; gap: 8px; padding: 14px 18px 18px; flex-wrap: wrap; }
.tour-dots { display: flex; gap: 5px; margin-right: auto; }
.tour-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line); transition: width .3s, background .3s; }
.tour-dots i.past { background: rgba(var(--brand-rgb), .45); } .tour-dots i.on { width: 20px; background: var(--brand); }
.tour-skip { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 6px 4px; }
.tour-skip:hover { color: var(--ink); text-decoration: underline; }
.tour-root.is-sheet .tour-pop { top: auto !important; left: 12px !important; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; }
.tour-root.is-center .tour-pop .tour-dots { display: none; }
html.tour-open .bottom-nav, html.tour-open .mobile-actions { z-index: 30; }
@media (prefers-reduced-motion: reduce) { .tour-spot, .tour-pop { transition: none; } .tour-art img, .tour-spot i { animation: none; } }

/* ---------------------------------------------------------- Centro de ayuda */
.help-hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 24px; padding: 28px; border-radius: 24px; background: radial-gradient(120% 120% at 100% 0%, rgba(var(--brand-rgb), .18), transparent 60%), var(--surface); border: 1px solid var(--line); overflow: hidden; }
.help-hero img { width: 100%; max-height: 260px; object-fit: contain; animation: tourFloat 6s ease-in-out infinite; }
.help-hero h1 { margin: 6px 0 8px; font-size: 1.7rem; }
.help-tours { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.help-tour { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; text-align: left; font: inherit; cursor: pointer; width: 100%; }
.help-tour:hover { transform: translateY(-2px); border-color: rgba(var(--brand-rgb), .45); box-shadow: 0 10px 26px rgba(15, 23, 42, .08); text-decoration: none; }
.help-tour .ht-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.help-tour strong { display: block; } .help-tour small { color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }
.help-tour .done-tag { margin-left: auto; color: var(--green-ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 12px 4px; font-weight: 650; display: flex; align-items: center; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; font-size: 20px; color: var(--muted); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 4px 14px; color: var(--muted); line-height: 1.6; animation: tourIn .3s ease; }
@media (max-width: 760px) { .help-hero { grid-template-columns: 1fr; padding: 20px; } .help-hero img { order: -1; max-height: 180px; } }
.mt-lg { margin-top: 32px; } .mb-sm { margin-bottom: 8px; }

/* Calidad de fotos */
.dz-quality { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.dz-quality .label { font-size: 12.5px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.seg-sm label span { padding: 4px 11px; font-size: 12.5px; }

/* ---------------------------------------------------------- Correo */
.mail-intro { display: flex; gap: 18px; align-items: center; }
.mail-intro img { width: 150px; flex-shrink: 0; animation: tourFloat 6s ease-in-out infinite; }
.mail-intro p { margin: 4px 0 0; }
.pref-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.pref-option:hover { border-color: rgba(var(--brand-rgb), .4); }
.pref-option:has(input:checked) { border-color: var(--brand); background: var(--brand-softer, rgba(var(--brand-rgb), .06)); }
.pref-option input { margin-top: 3px; accent-color: var(--brand); }
.pref-option strong { display: block; font-size: 14px; } .pref-option small { color: var(--muted); line-height: 1.45; display: block; }
@media (max-width: 640px) { .mail-intro { flex-direction: column; align-items: flex-start; } .mail-intro img { width: 120px; } }
/* ---------------------------------------------------------- Puesta en marcha */
.onb-hero { display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: center; padding: 28px; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(120% 140% at 100% 0%, rgba(var(--brand-rgb), .16), transparent 60%), var(--surface); }
.onb-hero h1 { margin: 6px 0 8px; font-size: 1.7rem; }
.onb-progress { display: flex; align-items: center; gap: 12px; max-width: 420px; } .onb-progress .progress { flex: 1; }
.onb-ring { position: relative; width: 240px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--surface-3) 0); padding: 10px; }
.onb-ring::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface); }
.onb-ring img { position: relative; width: 82%; animation: tourFloat 6s ease-in-out infinite; }
.onb-ring span { position: absolute; bottom: 14px; padding: 3px 12px; border-radius: 99px; background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 6px 16px rgba(var(--brand-rgb), .35); }
.onb-steps { display: grid; gap: 10px; }
.onb-step { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, transform .2s, box-shadow .2s; }
.onb-step p { margin: 3px 0 4px; }
.onb-step small.ok { color: var(--green-ink); } .onb-step small { display: inline-flex; gap: 5px; align-items: center; }
.onb-num { width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); transition: all .3s; }
.onb-step.is-done .onb-num { background: var(--green); color: #fff; box-shadow: 0 6px 14px rgba(16, 185, 129, .3); }
.onb-step.is-done strong { color: var(--muted); }
.onb-step.is-next { border-color: rgba(var(--brand-rgb), .55); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .08); }
.onb-step.is-next .onb-num { background: var(--brand-soft); color: var(--brand); animation: attention 1.8s ease 2; }
.onb-card { display: flex; align-items: center; gap: 18px; }
.onb-card .mini-ring { --size: 68px; width: var(--size); height: var(--size); flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--surface-3) 0); position: relative; font-weight: 800; font-size: 15px; }
.onb-card .mini-ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.onb-card .mini-ring b { position: relative; }
.onb-card img { width: 120px; margin-left: auto; }
@media (max-width: 760px) { .onb-hero { grid-template-columns: 1fr; padding: 20px; } .onb-ring { width: 180px; margin: 0 auto; order: -1; } .onb-step { flex-wrap: wrap; } .onb-step:not(.is-done) .btn { width: 100%; } .onb-step.is-done .btn { margin-left: 56px; } .onb-card img { display: none; } .onb-card { flex-wrap: wrap; } }