/* ═══════════════════════════════════════════
   PANAMÁ VIRTUAL — Admin Panel
   Extiende panama-virtual.css · colores del logo
   ═══════════════════════════════════════════ */

/* ─── SVG Icons ─── */
.pv-ico {
  width: 20px; height: 20px; flex: 0 0 auto;
  display: inline-block; vertical-align: -0.22em;
  color: currentColor; overflow: visible;
}
.pv-ico-sm { width: 15px; height: 15px; vertical-align: -0.18em; }
.pv-ico-lg { width: 30px; height: 30px; }

.pv-admin-layout { display: flex; min-height: 100vh; }
.pv-admin-sidebar {
  width: 240px;
  background: linear-gradient(180deg, var(--pv-ink) 0%, #071a33 55%, var(--pv-blue) 100%);
  color: #fff;
  display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 100;
}
.pv-admin-sidebar .pv-sidebar-head {
  padding: 20px 14px; border-bottom: 1px solid rgba(152, 216, 248, 0.12);
  display: flex; align-items: center; justify-content: center;
  min-height: 90px;
}
.pv-admin-sidebar .pv-sidebar-head img,
.pv-admin-sidebar .pv-brand-logo {
  width: 100%; max-width: 200px; height: auto; display: block;
  background: transparent;
}
.pv-admin-sidebar nav { flex: 1; padding: 12px 0; }
.pv-admin-sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; font-size: 14px; font-weight: 500; color: rgba(200, 232, 248, 0.65);
  text-decoration: none; transition: all 0.15s; border-left: 3px solid transparent;
}
.pv-admin-sidebar nav a:hover { color: #fff; background: rgba(8, 168, 248, 0.1); }
.pv-admin-sidebar nav a.active {
  color: #fff;
  background: rgba(227, 6, 19, 0.18);
  border-left-color: var(--pv-red-bright);
}
.pv-admin-sidebar nav a .pv-ico { transition: transform 0.3s var(--pv-spring); }
.pv-admin-sidebar nav a:hover .pv-ico { transform: scale(1.16) translateX(2px); }
.pv-admin-sidebar nav a.active .pv-ico { transform: scale(1.08); color: var(--pv-cyan); }
.pv-admin-sidebar .pv-sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(152, 216, 248, 0.12); }
.pv-admin-sidebar .pv-sidebar-footer a { display: flex; align-items: center; gap: 10px; color: rgba(200, 232, 248, 0.5); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.pv-admin-sidebar .pv-sidebar-footer a:hover { color: #fff; }
.pv-admin-sidebar .pv-sidebar-footer a .pv-ico { transition: transform 0.3s var(--pv-spring); }
.pv-admin-sidebar .pv-sidebar-footer a:hover .pv-ico { transform: translateX(3px); }

.pv-admin-main {
  margin-left: 240px; flex: 1; min-height: 100vh;
  background:
    radial-gradient(1200px 400px at 100% -10%, rgba(152, 216, 248, 0.35), transparent 55%),
    radial-gradient(800px 300px at 0% 0%, rgba(8, 168, 248, 0.08), transparent 50%),
    var(--pv-cream);
}
.pv-admin-topbar {
  background: rgba(255,255,255,0.88); backdrop-filter: blur(12px);
  padding: 14px 28px; border-bottom: 1px solid rgba(7, 35, 87, 0.06);
  display: flex; justify-content: space-between; align-items: center;
}
.pv-admin-topbar h4 { font-size: 1.4rem; margin: 0; color: var(--pv-blue); }
.pv-admin-content { padding: 28px; max-width: 1200px; margin: 0 auto; }

/* ─── Page transition ─── */
@keyframes pvPageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.pv-admin-content { animation: pvPageIn 0.25s var(--pv-ease); }
@media (prefers-reduced-motion: reduce) { .pv-admin-content { animation: none; } }

/* ─── Admin Cards ─── */
.pv-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 28px; }
.pv-stat-card {
  background: var(--pv-warm-white); border-radius: 16px; padding: 24px;
  box-shadow: var(--pv-shadow-sm); border: 1px solid rgba(7, 35, 87, 0.05);
  border-left: 4px solid var(--pv-red-bright);
}
.pv-stat-card.blue { border-left-color: var(--pv-blue); }
.pv-stat-card.cyan { border-left-color: var(--pv-sky); }
.pv-stat-card h2 { font-size: 2.2rem; margin-bottom: 2px; color: var(--pv-blue); }
.pv-stat-card p { font-size: 13px; color: var(--pv-muted); font-weight: 500; font-family: 'Outfit', sans-serif; }
.pv-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.pv-stat-top h2 { margin-bottom: 0; }
.pv-stat-card .pv-ico-lg { color: var(--pv-red); opacity: 0.9; transition: transform 0.35s var(--pv-spring); }
.pv-stat-card.blue .pv-ico-lg { color: var(--pv-blue-light); }
.pv-stat-card.cyan .pv-ico-lg { color: var(--pv-sky); }
.pv-stat-card:hover .pv-ico-lg { transform: scale(1.1) rotate(-3deg); }

/* ─── Tables ─── */
.pv-table-wrap { background: var(--pv-warm-white); border-radius: 16px; overflow: hidden; box-shadow: var(--pv-shadow-sm); border: 1px solid rgba(7, 35, 87, 0.05); }
.pv-table { width: 100%; border-collapse: collapse; }
.pv-table th { text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--pv-muted); background: rgba(152, 216, 248, 0.18); border-bottom: 1px solid rgba(7, 35, 87, 0.06); }
.pv-table td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid rgba(7, 35, 87, 0.04); }
.pv-table tr:last-child td { border-bottom: none; }
.pv-table tr:hover td { background: rgba(8, 168, 248, 0.04); }

/* ─── Forms ─── */
.pv-form-group { margin-bottom: 18px; }
.pv-form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--pv-muted); margin-bottom: 6px; }
.pv-input {
  width: 100%; padding: 12px 16px; font-size: 14px; font-family: 'Outfit', sans-serif;
  background: var(--pv-cream); border: 2px solid transparent; border-radius: 12px;
  color: var(--pv-dark); outline: none; transition: all 0.2s;
}
.pv-input:focus { border-color: var(--pv-sky); background: #fff; box-shadow: 0 0 0 4px rgba(8, 168, 248, 0.14); }
.pv-select { width: 100%; padding: 12px 16px; font-size: 14px; font-family: 'Outfit', sans-serif; background: var(--pv-cream); border: 2px solid transparent; border-radius: 12px; color: var(--pv-dark); outline: none; }
.pv-select:focus { border-color: var(--pv-sky); outline: none; box-shadow: 0 0 0 4px rgba(8, 168, 248, 0.14); }
.pv-textarea { width: 100%; padding: 12px 16px; font-size: 14px; font-family: 'Outfit', sans-serif; background: var(--pv-cream); border: 2px solid transparent; border-radius: 12px; color: var(--pv-dark); outline: none; resize: vertical; min-height: 80px; }
.pv-textarea:focus { border-color: var(--pv-sky); background: #fff; box-shadow: 0 0 0 4px rgba(8, 168, 248, 0.14); }

/* ─── Badges ─── */
.pv-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; }
.pv-badge-green { background: rgba(21,190,83,0.15); color: #108c3d; }
.pv-badge-red { background: rgba(227, 6, 19, 0.1); color: var(--pv-red); }
.pv-badge-blue { background: rgba(7, 35, 87, 0.1); color: var(--pv-blue); }
.pv-badge-gray { background: rgba(0,0,0,0.06); color: var(--pv-muted); }
.pv-badge-cyan { background: rgba(152, 216, 248, 0.35); color: var(--pv-blue); }

/* ─── Row action links ─── */
.pv-action { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.pv-action .pv-ico { transition: transform 0.25s var(--pv-spring); }
.pv-action:hover .pv-ico { transform: scale(1.18); }
a.pv-action:not(.pv-badge) { color: var(--pv-blue); }

.pv-row-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.pv-toggle-form { display: inline; margin: 0; }
.pv-toggle-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.pv-toggle-btn.is-danger {
  color: var(--pv-red); background: rgba(227, 6, 19, 0.08);
  border-color: rgba(227, 6, 19, 0.28);
}
.pv-toggle-btn.is-danger:hover {
  background: var(--pv-red); color: #fff; border-color: var(--pv-red);
  transform: translateY(-1px);
}
.pv-toggle-btn.is-success {
  color: #108c3d; background: rgba(21, 190, 83, 0.12);
  border-color: rgba(21, 190, 83, 0.35);
}
.pv-toggle-btn.is-success:hover {
  background: #15be53; color: #fff; border-color: #15be53;
  transform: translateY(-1px);
}
.pv-confirm-ico.is-info {
  color: var(--pv-sky); background: rgba(8, 168, 248, 0.14);
}

/* ─── Color swatches ─── */
.pv-color-swatch { display: inline-block; width: 20px; height: 20px; border-radius: 6px; vertical-align: middle; border: 1px solid rgba(0,0,0,0.1); }

/* ─── Logo thumbnails (tabla colegios) ─── */
.pv-logo-thumb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  background: var(--pv-cream); border-radius: 14px;
  border: 1px solid rgba(7, 35, 87, 0.08);
  position: relative; vertical-align: middle; cursor: zoom-in;
}
.pv-logo-thumb img {
  max-width: 52px; max-height: 52px; width: auto; height: auto;
  object-fit: contain; display: block;
  border-radius: 8px;
  transition: max-width 0.28s var(--pv-spring), max-height 0.28s var(--pv-spring),
    padding 0.25s, box-shadow 0.25s, background 0.25s;
  transform-origin: left center;
}
.pv-logo-thumb:hover img {
  position: relative; z-index: 40;
  max-width: 148px; max-height: 148px;
  padding: 10px; background: #fff; border-radius: 14px;
  box-shadow: 0 14px 36px rgba(7, 35, 87, 0.24);
  border: 1px solid rgba(7, 35, 87, 0.08);
}
.pv-table-wrap:has(.pv-logo-thumb:hover) { overflow: visible; }
.pv-table td:has(.pv-logo-thumb) { overflow: visible; }
.pv-table tr:has(.pv-logo-thumb:hover) { position: relative; z-index: 6; }

/* ─── Admin Login (standalone) ─── */
.pv-admin-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(900px 500px at 15% 20%, rgba(8, 168, 248, 0.22), transparent 55%),
    radial-gradient(700px 400px at 90% 80%, rgba(227, 6, 19, 0.18), transparent 50%),
    linear-gradient(160deg, var(--pv-ink), var(--pv-blue));
}
.pv-admin-login-card {
  width: 100%; max-width: 400px; background: var(--pv-warm-white); padding: 44px 36px;
  border-radius: 20px; box-shadow: 0 20px 60px rgba(7, 35, 87, 0.45);
  border: 1px solid rgba(152, 216, 248, 0.25);
}
.pv-admin-login-card .pv-admin-logo { text-align: center; margin-bottom: 32px; }
.pv-admin-login-card .pv-admin-logo img,
.pv-admin-login-card .pv-brand-logo {
  width: 100%; max-width: 280px; height: auto; margin: 0 auto 12px; display: block;
  background: var(--pv-ink);
  border-radius: 12px;
  padding: 10px 14px;
}
.pv-admin-login-card .pv-admin-logo h3 { font-size: 1.4rem; color: var(--pv-blue); }

/* ─── Modal ─── */
.pv-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 200; }
.pv-modal { background: var(--pv-warm-white); border-radius: 20px; padding: 28px; width: 100%; max-width: 500px; max-height: 80vh; overflow-y: auto; box-shadow: var(--pv-shadow-xl); }

/* ═══════════════════════════════════════════
   ENHANCEMENTS — SaaS admin layer
   ═══════════════════════════════════════════ */

/* ─── Section heading ─── */
.pv-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 16px; }
.pv-section-head h5 { font-family: 'DM Serif Display', serif; font-size: 1.25rem; margin: 0; color: var(--pv-blue); }
.pv-section-head .pv-section-sub { font-size: 12px; color: var(--pv-muted); font-weight: 500; }

/* ─── Quick actions panel ─── */
.pv-quick-actions {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.pv-quick-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: 16px; text-decoration: none;
  background: var(--pv-warm-white); box-shadow: var(--pv-shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.3s var(--pv-spring), box-shadow 0.3s, border-color 0.3s;
}
.pv-quick-card:hover { transform: translateY(-3px); box-shadow: var(--pv-shadow-md); border-color: rgba(8, 168, 248, 0.35); }
.pv-quick-ico {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 13px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--pv-red-bright), var(--pv-red-dark));
  box-shadow: 0 6px 16px rgba(227, 6, 19, 0.3);
  transition: transform 0.35s var(--pv-spring);
}
.pv-quick-card:hover .pv-quick-ico { transform: scale(1.08) rotate(-4deg); }
.pv-quick-card.blue .pv-quick-ico { background: linear-gradient(135deg, var(--pv-sky), var(--pv-blue)); box-shadow: 0 6px 16px rgba(8, 168, 248, 0.3); }
.pv-quick-card.cyan .pv-quick-ico { background: linear-gradient(135deg, var(--pv-cyan), var(--pv-sky)); box-shadow: 0 6px 16px rgba(152, 216, 248, 0.45); color: var(--pv-blue); }
.pv-quick-ico .pv-ico { width: 22px; height: 22px; }
.pv-quick-body { display: flex; flex-direction: column; gap: 2px; }
.pv-quick-body strong { font-size: 14px; color: var(--pv-dark); font-weight: 600; }
.pv-quick-body span { font-size: 12px; color: var(--pv-muted); }

/* ─── Activity timeline ─── */
.pv-timeline { position: relative; padding: 6px 0 6px 6px; }
.pv-timeline::before {
  content: ""; position: absolute; left: 15px; top: 10px; bottom: 10px;
  width: 2px; background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.02));
}
.pv-tl-item {
  position: relative; display: flex; gap: 16px; padding: 10px 0 10px 0;
  animation: pv-tl-in 0.4s var(--pv-ease) both;
}
@keyframes pv-tl-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pv-tl-dot {
  position: relative; z-index: 1; flex: 0 0 auto;
  width: 20px; height: 20px; border-radius: 50%; margin-left: 4px;
  background: var(--pv-muted); border: 3px solid var(--pv-cream);
  box-shadow: 0 0 0 1px rgba(7, 35, 87, 0.08);
}
.pv-tl-dot.login { background: var(--pv-sky); }
.pv-tl-dot.lectura { background: var(--pv-blue-light); }
.pv-tl-dot.nota { background: #15be53; }
.pv-tl-dot.pin_activado { background: var(--pv-red-bright); }
.pv-tl-content {
  flex: 1; background: var(--pv-warm-white); border-radius: 14px;
  padding: 12px 16px; box-shadow: var(--pv-shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pv-tl-item:hover .pv-tl-content { transform: translateX(3px); box-shadow: var(--pv-shadow-md); }
.pv-tl-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 3px; }
.pv-tl-top strong { font-size: 13px; }
.pv-tl-time { font-size: 11px; color: var(--pv-muted); white-space: nowrap; }
.pv-tl-desc { font-size: 13px; color: #5a6675; font-weight: 300; }

/* ─── Search / toolbar ─── */
.pv-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.pv-search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.pv-search .pv-search-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--pv-muted); pointer-events: none;
}
.pv-search input {
  width: 100%; padding: 11px 40px 11px 42px; font-size: 14px; font-family: 'Outfit', sans-serif;
  background: var(--pv-warm-white); border: 2px solid rgba(0,0,0,0.05); border-radius: 12px;
  color: var(--pv-dark); outline: none; transition: all 0.2s;
}
.pv-search input:focus { border-color: var(--pv-sky); background: #fff; box-shadow: 0 0 0 4px rgba(8, 168, 248, 0.14); }
.pv-search kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 600; color: var(--pv-muted);
  background: rgba(0,0,0,0.05); border-radius: 6px; padding: 3px 6px; letter-spacing: 0.5px;
  pointer-events: none;
}
.pv-search input:focus ~ kbd { opacity: 0; }
.pv-count-pill { font-size: 12px; color: var(--pv-muted); font-weight: 500; }
tr.pv-hidden { display: none; }
tr.pv-no-results td { text-align: center; padding: 32px; color: var(--pv-muted); font-size: 14px; }

/* ─── Toasts (extend base, add stacking + variants) ─── */
.pv-toast-stack {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column-reverse; align-items: center; gap: 10px;
  z-index: 1000; pointer-events: none;
}
.pv-toast-stack .pv-toast { position: static; transform: translateY(14px) scale(0.98); left: auto; }
.pv-toast-stack .pv-toast.show { transform: translateY(0) scale(1); }
.pv-toast.error { background: linear-gradient(135deg, var(--pv-red), var(--pv-red-dark)); }
.pv-toast.error .pv-toast-check { background: #fff; color: var(--pv-red); }
.pv-toast.info { background: linear-gradient(135deg, var(--pv-blue-light), var(--pv-blue)); }
.pv-toast.info .pv-toast-check { background: var(--pv-cyan); color: var(--pv-blue); }
.pv-toast .pv-ico { width: 18px; height: 18px; }

/* ─── Confirm modal ─── */
.pv-modal-overlay {
  opacity: 0; visibility: hidden; transition: opacity 0.25s var(--pv-ease), visibility 0.25s;
  padding: 20px; z-index: 9999;
}
.pv-modal-overlay.show { opacity: 1; visibility: visible; }
.pv-modal {
  transform: translateY(16px) scale(0.96); opacity: 0;
  transition: transform 0.3s var(--pv-spring), opacity 0.25s;
}
.pv-modal-overlay.show .pv-modal { transform: none; opacity: 1; }
.pv-confirm { max-width: 400px; text-align: center; }
.pv-confirm-ico {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; color: var(--pv-red);
  background: rgba(227, 6, 19, 0.1);
}
.pv-confirm-ico .pv-ico { width: 28px; height: 28px; }
.pv-confirm h4 { font-size: 1.3rem; margin-bottom: 8px; color: var(--pv-blue); }
.pv-confirm p { font-size: 14px; color: var(--pv-muted); margin-bottom: 22px; line-height: 1.55; }
.pv-confirm-actions { display: flex; gap: 10px; justify-content: center; }
.pv-btn-danger {
  background: linear-gradient(135deg, var(--pv-red-bright), var(--pv-red-dark)); color: #fff;
  border: none; padding: 11px 24px; border-radius: 40px; font-size: 14px; font-weight: 600;
  font-family: 'Outfit', sans-serif; cursor: pointer; min-height: 44px;
  box-shadow: 0 6px 16px rgba(227, 6, 19, 0.28); transition: transform 0.25s var(--pv-spring), box-shadow 0.3s;
}
.pv-btn-danger:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(227, 6, 19, 0.36); }
.pv-btn-ghost {
  background: rgba(0,0,0,0.04); color: var(--pv-dark); border: none;
  padding: 11px 24px; border-radius: 40px; font-size: 14px; font-weight: 600;
  font-family: 'Outfit', sans-serif; cursor: pointer; min-height: 44px; transition: background 0.2s;
}
.pv-btn-ghost:hover { background: rgba(0,0,0,0.08); }

/* ─── Empty states ─── */
.pv-empty { text-align: center; padding: 54px 24px; }
.pv-empty svg.pv-empty-art { width: 150px; height: 110px; margin-bottom: 18px; }
.pv-empty h4 { font-size: 1.2rem; margin-bottom: 6px; }
.pv-empty p { font-size: 14px; color: var(--pv-muted); margin-bottom: 20px; max-width: 340px; margin-left: auto; margin-right: auto; }
td .pv-empty { padding: 40px 20px; }

/* ─── Skeleton loading ─── */
.pv-skeleton {
  position: relative; overflow: hidden; background: rgba(0,0,0,0.06);
  border-radius: 8px; color: transparent !important;
}
.pv-skeleton::after {
  content: ""; position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: pv-shimmer 1.3s infinite;
}
@keyframes pv-shimmer { 100% { transform: translateX(100%); } }
.pv-skeleton-row td { padding: 14px 16px; }
.pv-skeleton-line { height: 12px; border-radius: 6px; }
.pv-skeleton-line.sk-60 { width: 60%; }
.pv-skeleton-line.sk-40 { width: 40%; }
.pv-skeleton-line.sk-80 { width: 80%; }

/* ─── Bar chart (legacy / fallback) ─── */
.pv-chart-card { background: var(--pv-warm-white); border-radius: 16px; padding: 24px; box-shadow: var(--pv-shadow-sm); margin-top: 24px; }
.pv-chart {
  display: flex; align-items: flex-end; gap: 10px;
  height: 200px; padding-top: 20px; overflow-x: auto;
}
.pv-chart-col { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1 0 34px; min-width: 34px; height: 100%; justify-content: flex-end; }
.pv-chart-bar-wrap { flex: 1; display: flex; align-items: flex-end; width: 100%; justify-content: center; }
.pv-chart-bar {
  width: 62%; max-width: 34px; min-height: 4px; border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--pv-cyan), var(--pv-sky) 45%, var(--pv-blue));
  position: relative; transform-origin: bottom; animation: pv-bar-grow 0.7s var(--pv-ease) both;
  transition: filter 0.2s;
}
.pv-chart-bar:hover { filter: brightness(1.12); }
.pv-chart-bar span {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 600; color: var(--pv-blue);
}
@keyframes pv-bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.pv-chart-label { font-size: 10px; color: var(--pv-muted); white-space: nowrap; }

/* ─── Stats dashboard (ApexCharts) ─── */
.pv-stats-page { --pv-panel-gap: 20px; }
.pv-stats-toolbar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 22px;
}
.pv-stats-filter {
  display: flex; flex-direction: column; gap: 6px; min-width: min(100%, 280px);
}
.pv-stats-filter label {
  font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--pv-muted); font-family: 'Outfit', sans-serif;
}
.pv-stats-filter .pv-select { width: min(100%, 320px); }
.pv-stats-legend {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: var(--pv-muted); font-family: 'Outfit', sans-serif;
}
.pv-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-left: 6px;
}
.pv-dot.red { background: var(--pv-red); box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.15); }
.pv-dot.sky { background: var(--pv-sky); box-shadow: 0 0 0 3px rgba(8, 168, 248, 0.18); margin-left: 14px; }

.pv-stats-kpi .pv-kpi {
  position: relative; overflow: hidden;
  transition: transform 0.25s var(--pv-ease), box-shadow 0.25s var(--pv-ease);
  will-change: transform;
}
.pv-stats-kpi .pv-kpi::after {
  content: ''; position: absolute; inset: auto -20% -40% auto; width: 120px; height: 120px;
  border-radius: 50%; background: radial-gradient(circle, rgba(8, 168, 248, 0.12), transparent 70%);
  pointer-events: none;
}
.pv-stats-kpi .pv-kpi:hover {
  box-shadow: var(--pv-shadow-md);
}
.pv-kpi-spark { margin-top: 10px; margin-left: -4px; margin-right: -4px; min-height: 44px; }
.pv-kpi-meta {
  margin-top: 10px; font-size: 11px; color: var(--pv-muted); font-family: 'Outfit', sans-serif;
}

.pv-stats-grid-main {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--pv-panel-gap); margin-bottom: var(--pv-panel-gap);
}
.pv-stats-grid-secondary {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--pv-panel-gap); margin-bottom: var(--pv-panel-gap);
}
.pv-chart-panel {
  background: var(--pv-warm-white);
  border-radius: 18px; padding: 22px 22px 12px;
  box-shadow: var(--pv-shadow-sm);
  border: 1px solid rgba(7, 35, 87, 0.05);
  transition: box-shadow 0.25s var(--pv-ease), transform 0.25s var(--pv-ease);
}
.pv-chart-panel:hover {
  box-shadow: 0 12px 32px rgba(7, 35, 87, 0.08);
}
.pv-chart-wide { min-width: 0; }
.pv-chart-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.pv-chart-head h5 {
  margin: 0 0 2px; font-family: 'DM Serif Display', serif;
  font-size: 1.15rem; color: var(--pv-blue); font-weight: 400;
}
.pv-chart-tabs {
  display: inline-flex; background: rgba(152, 216, 248, 0.22);
  border-radius: 999px; padding: 3px; gap: 2px;
}
.pv-chart-tab {
  border: none; background: transparent; cursor: pointer;
  font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 600;
  color: var(--pv-muted); padding: 6px 12px; border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.pv-chart-tab:hover { color: var(--pv-blue); }
.pv-chart-tab.active {
  background: #fff; color: var(--pv-blue);
  box-shadow: 0 2px 8px rgba(7, 35, 87, 0.1);
}
.pv-apex { width: 100%; min-height: 240px; }
.pv-apex-donut { min-height: 280px; }
.pv-apex .apexcharts-tooltip {
  border-radius: 12px !important;
  box-shadow: 0 10px 28px rgba(7, 35, 87, 0.14) !important;
  border: 1px solid rgba(7, 35, 87, 0.06) !important;
  font-family: 'Outfit', sans-serif !important;
}
.pv-apex .apexcharts-tooltip-title {
  background: rgba(152, 216, 248, 0.25) !important;
  border-bottom: 1px solid rgba(7, 35, 87, 0.06) !important;
  font-family: 'Outfit', sans-serif !important;
}
.pv-apex .apexcharts-xaxistooltip,
.pv-apex .apexcharts-yaxistooltip { display: none; }

.pv-activity-panel { padding-bottom: 8px; }
.pv-activity-feed {
  display: flex; flex-direction: column; max-height: 420px; overflow-y: auto;
  margin: 0 -6px; padding: 4px 6px 12px;
}
.pv-activity-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start;
  padding: 12px 10px; border-radius: 12px;
  border-bottom: 1px solid rgba(7, 35, 87, 0.04);
  transition: background 0.2s var(--pv-ease), transform 0.2s var(--pv-ease);
}
.pv-activity-item:last-child { border-bottom: none; }
.pv-activity-item:hover {
  background: rgba(8, 168, 248, 0.06);
  transform: translateX(2px);
}
.pv-activity-body p {
  margin: 0; font-size: 13px; color: var(--pv-dark); line-height: 1.4;
  font-family: 'Outfit', sans-serif;
}
.pv-activity-meta {
  display: inline-block; margin-top: 3px; font-size: 11px; color: var(--pv-sky);
  font-weight: 500; font-family: 'Outfit', sans-serif;
}
.pv-activity-time {
  font-size: 11px; color: var(--pv-muted); white-space: nowrap;
  font-family: 'Outfit', sans-serif; padding-top: 2px;
}

@media (max-width: 1100px) {
  .pv-stats-grid-secondary { grid-template-columns: 1fr 1fr; }
  .pv-stats-grid-secondary .pv-chart-panel:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .pv-stats-grid-main { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pv-stats-grid-secondary { grid-template-columns: 1fr; }
  .pv-stats-grid-secondary .pv-chart-panel:last-child { grid-column: auto; }
  .pv-activity-item { grid-template-columns: auto 1fr; }
  .pv-activity-time { grid-column: 2; }
}

/* ─── Hamburger / mobile ─── */
.pv-hamburger {
  display: none; position: fixed; top: 12px; left: 12px; z-index: 150;
  width: 44px; height: 44px; border-radius: 12px; border: none; cursor: pointer;
  background: var(--pv-ink); color: #fff; box-shadow: var(--pv-shadow-md);
  align-items: center; justify-content: center;
}
.pv-hamburger svg { width: 22px; height: 22px; }
.pv-sidebar-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 99; opacity: 0; transition: opacity 0.3s;
}
.pv-sidebar-backdrop.show { opacity: 1; }

/* ─── Ripple ─── */
.pv-ripple-host { position: relative; overflow: hidden; }
.pv-ripple {
  position: absolute; border-radius: 50%; transform: scale(0); pointer-events: none;
  background: rgba(255,255,255,0.5); animation: pv-ripple 0.6s var(--pv-ease);
}
.pv-quick-card .pv-ripple, .btn-pv-secondary .pv-ripple { background: rgba(227, 6, 19, 0.18); }
@keyframes pv-ripple { to { transform: scale(2.6); opacity: 0; } }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .pv-hamburger { display: flex; }
  .pv-admin-sidebar {
    transform: translateX(-100%); transition: transform 0.32s var(--pv-ease);
    box-shadow: var(--pv-shadow-lg);
  }
  .pv-admin-sidebar.open { transform: translateX(0); }
  .pv-admin-main { margin-left: 0; }
  .pv-admin-topbar { padding-left: 68px; }
  .pv-sidebar-backdrop.show { display: block; }
}
@media (max-width: 768px) {
  .pv-stat-grid { grid-template-columns: 1fr 1fr; }
  .pv-admin-content { padding: 20px 16px; }
  .pv-quick-actions { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .pv-stat-grid { grid-template-columns: 1fr; }
}

/* ─── Asignación de libros (editar colegio) ─── */
.pv-assign-card {
  background: var(--pv-warm-white); border-radius: 16px; padding: 22px;
  box-shadow: var(--pv-shadow-sm); border: 1px solid rgba(7, 35, 87, 0.05);
}
.pv-assign-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.pv-assign-head h4 { margin: 0 0 4px; }
.pv-assign-head p { margin: 0; font-size: 13px; color: var(--pv-muted); }
.pv-assign-empty { color: var(--pv-muted); text-align: center; padding: 28px 12px; margin: 0; }
.pv-assign-toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.pv-assign-search { position: relative; }
.pv-assign-search .pv-input { padding-left: 40px; }
.pv-assign-search-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--pv-muted); pointer-events: none;
}
.pv-assign-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-assign-btn {
  border: 1px solid rgba(7, 35, 87, 0.12); background: rgba(152, 216, 248, 0.18);
  color: var(--pv-blue); font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.pv-assign-btn:hover {
  background: rgba(8, 168, 248, 0.2); border-color: rgba(8, 168, 248, 0.45);
  transform: translateY(-1px);
}
.pv-assign-btn:active { transform: translateY(0); }
.pv-assign-list {
  max-height: 420px; overflow-y: auto; margin: 0 -6px; padding: 0 6px 4px;
  border: 1px solid rgba(7, 35, 87, 0.06); border-radius: 12px;
  background: rgba(238, 245, 250, 0.45);
}
.pv-assign-group + .pv-assign-group { border-top: 1px solid rgba(7, 35, 87, 0.06); }
.pv-assign-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  position: sticky; top: 0; z-index: 1;
  padding: 10px 10px 8px; background: rgba(238, 245, 250, 0.96);
  backdrop-filter: blur(6px); border-bottom: 1px solid rgba(7, 35, 87, 0.05);
}
.pv-assign-group-toggle {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--pv-blue); font-family: 'Outfit', sans-serif;
}
.pv-assign-group-toggle input,
.pv-assign-item input {
  width: 18px; height: 18px; margin: 0; accent-color: var(--pv-red); cursor: pointer; flex-shrink: 0;
}
.pv-assign-group-meta {
  font-size: 11px; font-weight: 600; color: var(--pv-muted); font-family: 'Outfit', sans-serif;
}
.pv-assign-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px;
  cursor: pointer; border-radius: 10px; transition: background 0.15s;
  margin: 2px 4px;
}
.pv-assign-item:hover { background: rgba(8, 168, 248, 0.08); }
.pv-assign-item:has(input:checked) { background: rgba(227, 6, 19, 0.05); }
.pv-assign-item-body { flex: 1; min-width: 0; }
.pv-assign-item-body strong {
  display: block; font-size: 14px; font-weight: 600; color: var(--pv-dark);
  font-family: 'Outfit', sans-serif; line-height: 1.3;
}
.pv-assign-item-body span {
  display: block; margin-top: 2px; font-size: 12px; color: var(--pv-muted);
  font-family: 'Outfit', sans-serif;
}
.pv-assign-item .pv-badge { margin-top: 2px; flex-shrink: 0; }
.pv-assign-item.is-hidden { display: none; }
.pv-assign-group.is-empty { display: none; }
.pv-assign-noresults {
  text-align: center; color: var(--pv-muted); font-size: 13px; padding: 28px 12px; margin: 0;
}
.pv-assign-submit { width: 100%; margin-top: 14px; }
.pv-assign-footer { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ─── Wizard nuevo colegio ─── */
.pv-wizard { max-width: 760px; }
.pv-wizard-error {
  background: #fef0f0; color: var(--pv-red); padding: 12px 16px; border-radius: 12px;
  font-size: 13px; margin-bottom: 18px; border: 1px solid rgba(227, 6, 19, 0.15);
}
.pv-wizard-steps {
  display: flex; align-items: center; gap: 0; margin-bottom: 22px; flex-wrap: wrap;
}
.pv-wizard-step {
  display: inline-flex; align-items: center; gap: 8px; border: none; background: transparent;
  cursor: pointer; padding: 6px 4px; font-family: 'Outfit', sans-serif; color: var(--pv-muted);
  transition: color 0.2s;
}
.pv-wizard-step:disabled { cursor: default; opacity: 0.55; }
.pv-wizard-step-num {
  width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 700;
  background: rgba(7, 35, 87, 0.08); color: var(--pv-muted);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.pv-wizard-step-label { font-size: 13px; font-weight: 600; }
.pv-wizard-step.is-active { color: var(--pv-blue); }
.pv-wizard-step.is-active .pv-wizard-step-num {
  background: var(--pv-red); color: #fff; transform: scale(1.06);
}
.pv-wizard-step.is-done { color: var(--pv-blue); }
.pv-wizard-step.is-done .pv-wizard-step-num {
  background: rgba(8, 168, 248, 0.25); color: var(--pv-blue);
}
.pv-wizard-connector {
  flex: 1; min-width: 18px; height: 2px; margin: 0 6px;
  background: rgba(7, 35, 87, 0.1); border-radius: 2px;
  transition: background 0.25s;
}
.pv-wizard-connector.is-done { background: linear-gradient(90deg, var(--pv-sky), var(--pv-cyan)); }

.pv-wizard-card {
  background: var(--pv-warm-white); border-radius: 18px; padding: 24px;
  box-shadow: var(--pv-shadow-sm); border: 1px solid rgba(7, 35, 87, 0.05);
  animation: pvPageIn 0.25s var(--pv-ease);
}
.pv-wizard-card-head { margin-bottom: 18px; }
.pv-wizard-card-head-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.pv-wizard-card-head h5 {
  margin: 0 0 4px; font-family: 'DM Serif Display', serif;
  font-size: 1.25rem; font-weight: 400; color: var(--pv-blue);
}
.pv-wizard-card-head p { margin: 0; font-size: 13px; color: var(--pv-muted); }
.pv-optional { font-weight: 400; color: var(--pv-muted); text-transform: none; letter-spacing: 0; }
.pv-field-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--pv-muted); }

.pv-wizard-slug {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: -6px 0 18px; padding: 10px 14px; border-radius: 12px;
  background: rgba(152, 216, 248, 0.22); font-size: 13px; color: var(--pv-muted);
}
.pv-wizard-slug code { color: var(--pv-blue); font-weight: 600; }

.pv-wizard-logo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pv-wizard-logo-preview {
  width: 64px; height: 64px; border-radius: 14px; overflow: hidden;
  background: var(--pv-cream); border: 1px solid rgba(7, 35, 87, 0.08);
  display: flex; align-items: center; justify-content: center;
}
.pv-wizard-logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pv-wizard-logo-row .pv-input { flex: 1; min-width: 200px; padding: 10px; }

.pv-wizard-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pv-wizard-color-field {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; border-radius: 12px; background: var(--pv-cream);
}
.pv-wizard-color-field input[type="color"] {
  width: 48px; height: 40px; border: none; background: transparent; cursor: pointer; padding: 0;
}
.pv-wizard-color-field span {
  font-size: 13px; font-weight: 600; color: var(--pv-blue); font-family: 'Outfit', monospace;
}

.pv-wizard-pin-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pv-wizard-preset {
  border: 1px solid rgba(7, 35, 87, 0.12); background: #fff; color: var(--pv-blue);
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 700;
  min-width: 56px; padding: 10px 14px; border-radius: 12px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.pv-wizard-preset:hover { border-color: var(--pv-sky); transform: translateY(-1px); }
.pv-wizard-preset.is-active {
  background: var(--pv-red); border-color: var(--pv-red); color: #fff;
}
.pv-wizard-pin-note {
  margin-top: 8px; padding: 14px 16px; border-radius: 12px;
  background: rgba(8, 168, 248, 0.08); border-left: 3px solid var(--pv-sky);
  font-size: 13px; color: var(--pv-muted); line-height: 1.45;
}
.pv-wizard-pin-note strong { color: var(--pv-blue); }

.pv-wizard-summary {
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px;
}
.pv-wizard-summary li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 14px; border-radius: 12px; background: rgba(238, 245, 250, 0.8);
}
.pv-wizard-summary span { font-size: 12px; color: var(--pv-muted); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; }
.pv-wizard-summary strong { font-size: 15px; color: var(--pv-dark); text-align: right; }
.pv-wizard-brand-preview {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  font-size: 13px; color: var(--pv-muted);
}
.pv-wizard-swatch {
  width: 28px; height: 28px; border-radius: 8px; border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(7, 35, 87, 0.15);
}

.pv-wizard-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 20px; flex-wrap: wrap;
}
.pv-wizard-nav-right { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }

.pv-wizard .pv-assign-list { max-height: 360px; }

/* Done */
.pv-wizard-done { max-width: 860px; }
.pv-wizard-done-hero {
  text-align: center; padding: 28px 20px 24px; margin-bottom: 20px;
  background: linear-gradient(160deg, rgba(152, 216, 248, 0.35), rgba(238, 245, 250, 0.9) 55%, #fff);
  border-radius: 20px; border: 1px solid rgba(7, 35, 87, 0.05);
}
.pv-wizard-done-check {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pv-red), var(--pv-red-dark));
  color: #fff; font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(227, 6, 19, 0.28);
  animation: pv-wizard-pop 0.45s var(--pv-spring) both;
}
@keyframes pv-wizard-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.pv-wizard-done-hero h3 {
  margin: 0 0 6px; font-family: 'DM Serif Display', serif;
  font-size: 1.8rem; color: var(--pv-blue); font-weight: 400;
}
.pv-wizard-done-hero > p { margin: 0 0 14px; color: var(--pv-muted); font-size: 14px; }
.pv-wizard-done-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pv-wizard-done-meta a { text-decoration: none; }

.pv-wizard-pins-card { margin-bottom: 18px; }
.pv-wizard-dl-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-pv-sm {
  font-size: 12px; padding: 8px 14px; border-radius: 10px;
}
.pv-btn-sky { background: linear-gradient(135deg, var(--pv-sky), #0690d4) !important; color: #fff !important; border: none !important; }
.pv-btn-navy { background: linear-gradient(135deg, var(--pv-blue-light), var(--pv-blue)) !important; color: #fff !important; border: none !important; }
.pv-btn-outline {
  background: transparent !important; border: 2px solid var(--pv-cyan) !important; color: var(--pv-dark) !important;
}

.pv-wizard-pin-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px; max-height: 380px; overflow-y: auto; padding: 4px 2px 8px;
}
.pv-wizard-pin-chip {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border: 1px solid rgba(7, 35, 87, 0.08); border-radius: 12px; background: #fff;
  cursor: pointer; text-align: left; font-family: 'Outfit', sans-serif;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.pv-wizard-pin-chip:hover {
  border-color: var(--pv-sky); background: rgba(8, 168, 248, 0.06); transform: translateY(-1px);
}
.pv-wizard-pin-chip.is-copied {
  background: rgba(21, 190, 83, 0.12); border-color: rgba(21, 190, 83, 0.4);
}
.pv-wizard-pin-idx {
  font-size: 10px; font-weight: 700; color: var(--pv-muted); min-width: 18px;
}
.pv-wizard-pin-chip code {
  font-size: 14px; font-weight: 700; letter-spacing: 0.5px; color: var(--pv-blue);
}

.pv-wizard-done-actions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px;
}

@media (max-width: 640px) {
  .pv-wizard-colors { grid-template-columns: 1fr; }
  .pv-wizard-step-label { display: none; }
  .pv-wizard-nav { flex-direction: column; align-items: stretch; }
  .pv-wizard-nav-right { margin-left: 0; }
  .pv-wizard-nav-right .btn-pv, #wz-cancel { width: 100%; text-align: center; }
}

@media print {
  .pv-admin-sidebar, .pv-hamburger, .pv-wizard-done-actions, .pv-wizard-dl-actions,
  .pv-admin-topbar, .pv-sidebar-backdrop,
  .pv-colegio-edit-top, .pv-pin-generate, .pv-pin-toolbar { display: none !important; }
  .pv-admin-main { margin: 0 !important; }
  .pv-wizard-pin-grid { max-height: none; overflow: visible; }
  .pv-wizard-done-hero { background: none; border: none; }
  .pv-pin-table-wrap { max-height: none !important; overflow: visible !important; }
}

/* ─── Editar colegio + PINs ─── */
.pv-colegio-edit-top {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px;
}
@media (max-width: 900px) {
  .pv-colegio-edit-top { grid-template-columns: 1fr; }
}

.pv-pin-panel {
  background: var(--pv-warm-white); border-radius: 18px; padding: 24px;
  box-shadow: var(--pv-shadow-sm); border: 1px solid rgba(7, 35, 87, 0.05);
  scroll-margin-top: 24px;
}
.pv-pin-panel-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.pv-pin-panel-head h4 { margin: 0 0 4px; }
.pv-pin-panel-head p { margin: 0; font-size: 13px; color: var(--pv-muted); }
.pv-pin-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.pv-pin-stat {
  min-width: 88px; text-align: center; padding: 10px 14px; border-radius: 12px;
  background: rgba(152, 216, 248, 0.2);
}
.pv-pin-stat strong {
  display: block; font-size: 1.35rem; color: var(--pv-blue); line-height: 1.1;
  font-family: 'Outfit', sans-serif;
}
.pv-pin-stat span { font-size: 11px; color: var(--pv-muted); font-weight: 600; }

.pv-pin-generate {
  padding: 16px; border-radius: 14px; margin-bottom: 16px;
  background: rgba(238, 245, 250, 0.7); border: 1px solid rgba(7, 35, 87, 0.05);
}
.pv-pin-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pv-pin-generate-row {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
}
.pv-pin-generate-btn { white-space: nowrap; min-height: 48px; }

.pv-pin-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px;
}
.pv-pin-toolbar .pv-input { width: min(100%, 260px); }
.pv-pin-toolbar .pv-select { width: auto; min-width: 160px; }
.pv-pin-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }

.pv-pin-table-wrap { max-height: 420px; overflow-y: auto; }
.pv-pin-code {
  font-size: 15px; font-weight: 700; letter-spacing: 0.5px; color: var(--pv-blue);
}
.pv-pin-date { font-size: 12px; color: var(--pv-muted); }
.pv-pin-copy-one {
  background: rgba(8, 168, 248, 0.1); border: 1px solid rgba(8, 168, 248, 0.25);
  color: var(--pv-blue); font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pv-pin-copy-one:hover { background: var(--pv-sky); color: #fff; border-color: var(--pv-sky); }
.pv-pin-count {
  text-align: center; padding: 10px 8px 0; font-size: 12px; color: var(--pv-muted);
}
.pv-pin-empty { padding: 36px 16px; }

.pv-prof-block {
  margin: 0 0 20px; padding: 16px;
  border-radius: 14px; background: rgba(238, 245, 250, 0.65);
  border: 1px solid rgba(7, 35, 87, 0.05);
}
.pv-prof-block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 12px; flex-wrap: wrap;
}
.pv-prof-block-head h5 {
  margin: 0; font-family: 'DM Serif Display', serif;
  font-size: 1.15rem; font-weight: 400; color: var(--pv-blue);
}
.pv-prof-table-wrap { max-height: 280px; overflow-y: auto; background: #fff; }

#pv-prof-modal[hidden] { display: none !important; }
#pv-prof-modal { display: flex; }
.pv-prof-modal { max-width: 460px; }
.pv-prof-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}
.pv-prof-modal-head h4 { margin: 0 0 4px; color: var(--pv-blue); }
.pv-prof-modal-close {
  width: 36px; height: 36px; border: none; border-radius: 10px; cursor: pointer;
  background: rgba(7, 35, 87, 0.06); color: var(--pv-muted);
  font-size: 22px; line-height: 1;
}
.pv-prof-modal-close:hover { background: rgba(227, 6, 19, 0.1); color: var(--pv-red); }
.pv-prof-check {
  display: flex; align-items: center; gap: 10px; margin: 4px 0 18px;
  font-size: 14px; color: var(--pv-dark); cursor: pointer;
  font-family: 'Outfit', sans-serif;
}
.pv-prof-check input { width: 18px; height: 18px; accent-color: var(--pv-red); }
.pv-prof-modal-actions {
  display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
}
