/* ---------- Panel del dueño (escritorio) ---------- */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 20px 16px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.topbar .home { font-size: 13px; color: var(--brand); text-decoration: none; }
.adm { display: flex; border: 0.5px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; min-height: 520px; }
.side { width: 172px; flex-shrink: 0; background: var(--sand); border-right: 0.5px solid var(--line); padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 8px; padding: 4px 16px 14px; font-size: 14px; font-weight: 600; }
.dot { width: 22px; height: 22px; border-radius: 6px; background: var(--brand); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; }
.snav { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 13px; color: var(--muted); cursor: pointer; border-left: 2px solid transparent; }
.snav i { font-size: 18px; }
.snav.on { color: var(--brand); background: #fff; border-left-color: var(--brand); font-weight: 500; }
.content { flex: 1; min-width: 0; padding: 16px 18px; }
.asec { display: none; }
.asec.active { display: block; }
.sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.sec-title { font-size: 16px; font-weight: 600; }
.mcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mc { background: var(--sand); border-radius: 10px; padding: 13px 14px; }
.mc .l { font-size: 12px; color: var(--muted); }
.mc .v { font-size: 24px; font-weight: 600; margin-top: 4px; }
.panes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pane { border: 0.5px solid var(--line); border-radius: 12px; padding: 14px; }
.ph { font-size: 13px; font-weight: 600; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 0.5px solid var(--line); font-size: 13px; }
.li:last-child { border-bottom: none; }
.muted { color: var(--muted); font-size: 12px; }
.track { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; width: 70px; }
.fill { height: 100%; background: var(--brand); }
.bdg { font-size: 11px; padding: 2px 9px; border-radius: 20px; }
.bdg.warn { background: #FAEEDA; color: #854F0B; }
.bdg.danger { background: #FCEBEB; color: #A32D2D; }
.bdg.info { background: #E6F1FB; color: #185FA5; }
.bdg.mut { background: #EFEDE6; color: #5F5E5A; }
.btn { background: var(--brand); color: #fff; border: none; border-radius: 8px; font-size: 12px; padding: 7px 12px; cursor: pointer; }
.bo { background: none; border: 0.5px solid var(--line); color: var(--muted); border-radius: 8px; font-size: 12px; padding: 5px 10px; cursor: pointer; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 8px; }
.bars > div { flex: 1; border-radius: 3px; }
.placeholder { text-align: center; color: var(--muted); padding: 34px; }
.placeholder i { font-size: 32px; color: var(--brand); }
@media (max-width: 760px) {
  .admin-wrap { padding: 12px 10px; }
  .adm { flex-direction: column; min-height: 0; }
  .side { width: auto; display: flex; align-items: center; gap: 2px; overflow-x: auto; border-right: none; border-bottom: 0.5px solid var(--line); padding: 8px; -webkit-overflow-scrolling: touch; }
  .brand { padding: 6px 10px; white-space: nowrap; flex-shrink: 0; }
  .snav { white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; padding: 8px 10px; flex-shrink: 0; }
  .snav.on { border-left: none; border-bottom-color: var(--brand); background: none; }
  .panes { grid-template-columns: 1fr; }
  .content { padding: 14px; }
}

/* editable / interactive */
.ta { width: 100%; min-height: 78px; border: 0.5px solid var(--line); border-radius: 8px; padding: 11px; font-family: inherit; font-size: 13px; color: var(--ink); resize: vertical; }
.ta:focus { outline: none; border-color: var(--brand); }
.tin { border: 0.5px solid var(--line); border-radius: 7px; padding: 5px 9px; font-family: inherit; font-size: 13px; color: var(--ink); }
.tin:focus { outline: none; border-color: var(--brand); }
input[type=color] { width: 30px; height: 24px; border: 0.5px solid var(--line); border-radius: 5px; padding: 0; background: none; cursor: pointer; }
.seg { cursor: pointer; }
.seg.on { background: var(--brand); color: #fff; }
.toast-pop { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(8px); background: var(--brand-ink); color: #fff; padding: 11px 18px; border-radius: 22px; font-size: 13px; z-index: 60; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.toast-pop.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* selector de idioma */
.pill { font-size: 12.5px; background: var(--sand); border: 0.5px solid var(--line); color: var(--ink); padding: 6px 11px; border-radius: 20px; cursor: pointer; font-family: inherit; }
#lang-wrap { position: relative; display: inline-block; }
.langmenu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--color, #fff); background: #fff; border: 0.5px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.16); padding: 6px; display: none; z-index: 40; min-width: 150px; }
.langmenu.show { display: block; }
.langopt { display: block; width: 100%; text-align: left; background: none; border: none; padding: 9px 12px; border-radius: 8px; font-size: 13px; color: var(--ink); cursor: pointer; font-family: inherit; }
.langopt:hover { background: var(--sand); }
.langopt.on { background: var(--brand-soft); color: var(--brand); font-weight: 500; }
