/* ==========================================================================
   TuCilindrada — panel del concesionario
   Se apoya en los tokens y componentes de main.css (botones, campos, modales).
   ========================================================================== */

.panel-body { background: var(--bg); }
.pn { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.pn-muted { color: var(--muted); }
.pn-small { font-size: 13px; }
.pn-block { display: block; }
.pn-stack { display: grid; gap: 16px; align-content: start; }
.pn-empty { padding: 24px 0; color: var(--muted); text-align: center; }
.pn-h2 { margin: 40px 0 16px; font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; }
code { padding: 2px 6px; border-radius: 6px; background: var(--surface-3); font-size: .92em; }

/* ---------- Menú lateral ---------- */
.pn-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 16px; padding: 20px 16px; background: var(--bg); border-right: 1px solid var(--line); overflow-y: auto; z-index: 40; }
.pn-side__top { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px; }
.pn-side__tag { padding: 3px 8px; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand-text); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pn-dealer { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.pn-dealer__name { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pn-dealer__name strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-dealer__name small { color: var(--muted); font-size: 12px; }
.pn-switch select { width: 100%; min-height: 36px; padding: 0 10px; border-radius: var(--r-s); border: 1px dashed var(--line-2); background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.pn-switch option { background: var(--surface); }
.pn-nav { display: grid; gap: 2px; margin-top: 8px; }
.pn-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-s); color: var(--ink-2); font-weight: 600; font-size: 15px; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.pn-nav a .icon { width: 19px; height: 19px; color: var(--muted); transition: color var(--t-fast) var(--ease); }
.pn-nav a:hover { background: var(--surface); color: var(--ink); }
.pn-nav a.is-active { background: var(--brand-soft); color: var(--ink); }
.pn-nav a.is-active .icon { color: var(--brand); }
.pn-nav a.is-active::before { content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.pn-nav__badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--brand); color: var(--brand-ink); font-style: normal; font-size: 12px; font-weight: 800; text-align: center; }
.pn-side__bottom { display: grid; gap: 2px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.pn-side__bottom a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-s); color: var(--muted); font-size: 14px; font-weight: 600; }
.pn-side__bottom a:hover { color: var(--ink); background: var(--surface); }
.pn-side__bottom .icon { width: 17px; height: 17px; }

/* ---------- Contenido ---------- */
.pn-main { min-width: 0; min-height: 100vh; }
.pn-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 18px 32px; background: rgb(var(--bg-rgb) / .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.pn-top__menu { display: none; }
.pn-top__title { flex: 1; min-width: 0; }
.pn-top__title h1 { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-top__title p { color: var(--muted); font-size: 14px; }
.pn-top__tools { display: flex; align-items: center; gap: 8px; }
.pn-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.pn-chip .icon { width: 15px; height: 15px; }
.pn-bell { border: 1px solid var(--line-2); }
.pn-avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: linear-gradient(140deg, var(--accent, var(--brand)), color-mix(in srgb, var(--accent, var(--brand)) 55%, #000)); color: #fff; font-weight: 800; }
.pn-avatar--sm { width: 34px; height: 34px; font-size: 14px; }
.pn-content { display: grid; gap: 24px; padding: 28px 32px 64px; max-width: 1480px; }

/* ---------- Tarjetas ---------- */
.pn-card { padding: 22px 24px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); min-width: 0; }
.pn-card--flush { padding: 0; overflow: hidden; }
.pn-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.pn-card__head--pad { padding: 22px 24px 0; }
.pn-card__head h2 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.pn-card__head p { color: var(--muted); font-size: 13px; }
.pn-card__head .link-arrow { font-size: 14px; color: var(--brand-text); }
.pn-grid { display: grid; gap: 24px; }
.pn-grid--2-1 { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.pn-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pn-grid--editor { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); align-items: start; }

/* ---------- Indicadores ---------- */
.pn-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pn-kpi { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; }
.pn-kpi__label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.pn-kpi__label .icon { width: 17px; height: 17px; color: var(--brand-text); }
.pn-kpi__value { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pn-kpi__value small { font-size: .55em; color: var(--muted); font-weight: 700; }
.pn-kpi__delta { font-size: 13px; font-weight: 800; }
.pn-kpi__delta span { font-weight: 500; color: var(--muted); }
.pn-kpi__delta.is-up { color: var(--ok); }
.pn-kpi__delta.is-down { color: var(--ember-text); }
.pn-kpis--compact .pn-kpi { padding: 16px 20px; }
.spark { position: absolute; right: 18px; top: 46px; width: 84px; height: 30px; }
.pn-kpi:has(.spark) .pn-kpi__value { padding-right: 96px; }
.spark__area { fill: var(--brand); opacity: .12; }
.spark__line { fill: none; stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* ---------- Gráficos ---------- */
.chart { width: 100%; height: auto; overflow: visible; }
.chart__grid { stroke: var(--line); }
.chart__axis { stroke: var(--line-2); }
.chart__tick { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.chart__line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; }
.chart__dot { fill: var(--surface); stroke: var(--brand); stroke-width: 2; opacity: 0; transition: opacity var(--t-fast) var(--ease); }
.chart:hover .chart__dot { opacity: 1; }
.chart__bar { fill: var(--ink); opacity: .16; transition: opacity var(--t-fast) var(--ease); }
.chart__bar:hover { opacity: .5; }
.pn-legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.pn-legend li { display: inline-flex; align-items: center; gap: 6px; }
.pn-legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--brand); }
.pn-legend i.is-bar { height: 10px; width: 8px; background: var(--ink); opacity: .2; }
.hbars { display: grid; gap: 12px; }
.hbars li { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 12px; font-size: 14px; }
.hbars__label { color: var(--ink-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbars__track { height: 10px; border-radius: 10px; background: var(--surface-3); overflow: hidden; }
.hbars__track i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--amber), var(--brand)); }
.hbars strong { font-variant-numeric: tabular-nums; }
.donut2 { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 20px; }
.donut2 svg { width: 140px; height: 140px; }
.donut2__n { font-family: var(--font-display); font-size: 9px; font-weight: 800; fill: var(--ink); }
.donut2__l { font-size: 3.6px; fill: var(--muted); }
.pn-funnel { display: grid; gap: 10px; margin-bottom: 16px; }
.pn-funnel li { display: grid; grid-template-columns: 90px 1fr 32px; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pn-funnel i { display: block; height: 28px; border-radius: 8px; background: var(--brand); opacity: .9; transition: width .8s var(--ease-out); }
.pn-funnel .is-nuevo i { background: var(--amber); }
.pn-funnel .is-contactado i { background: color-mix(in srgb, var(--brand) 75%, var(--amber)); }
.pn-funnel .is-test-ride i { background: var(--brand); }
.pn-funnel .is-reservada i { background: color-mix(in srgb, var(--brand) 70%, #7a2500); }
.pn-funnel .is-vendida i { background: var(--ok); }
.pn-funnel strong { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

/* ---------- Listas ---------- */
.pn-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.pn-list li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pn-list li:last-child { border-bottom: 0; }
.pn-list__main { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.pn-list__main strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-list__main small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-thumb { width: 48px; height: 40px; flex: none; border-radius: 10px; object-fit: cover; }
.pn-status { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.pn-status .icon { width: 13px; height: 13px; }
.pn-status.is-nuevo { background: rgb(255 176 32 / .18); color: #a15c00; }
.pn-status.is-contactado { background: var(--brand-soft); color: var(--brand-text); }
.pn-status.is-test-ride { background: rgb(56 189 248 / .14); color: #0369a1; }
.pn-status.is-reservada { background: rgb(185 140 255 / .18); color: #6d28d9; }
.pn-status.is-vendida { background: var(--ok-soft); color: var(--ok); }
.pn-status.is-perdida { background: var(--surface-3); color: var(--muted); }
.pn-alerts { display: grid; gap: 8px; }
.pn-alerts a { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); font-size: 14px; color: var(--ink-2); transition: background var(--t-fast) var(--ease); }
.pn-alerts a:hover { background: var(--brand-soft); }
.pn-alerts .icon { width: 18px; height: 18px; flex: none; color: var(--brand-text); margin-top: 1px; }

/* ---------- Barra de herramientas ---------- */
.pn-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pn-toolbar .filter-chips { margin: 0; }
.pn-toolbar .chip span { margin-left: 4px; opacity: .6; }
.pn-toolbar__actions { display: flex; gap: 8px; margin-left: auto; }
.pn-toolbar__hint { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.pn-toolbar__hint .icon { width: 15px; height: 15px; }
.pn-search { display: flex; align-items: center; gap: 8px; min-width: 280px; padding: 0 14px; min-height: 42px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-2); }
.pn-search .icon { width: 17px; height: 17px; color: var(--muted); }
.pn-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-weight: 600; }
.pn-search input:focus { outline: none; }
.pn-select { min-height: 42px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; }

/* ---------- CRM (tablero) ---------- */
.pn-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(208px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.pn-col { display: flex; flex-direction: column; gap: 10px; min-height: 420px; padding: 12px; border-radius: var(--r-l); background: var(--bg-2); border: 1px solid var(--line); transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.pn-col.is-over { background: var(--brand-soft); border-color: var(--brand); border-style: dashed; }
.pn-board:not(.show-lost) .pn-col.is-collapsed { display: none; }
.pn-col__head { display: flex; align-items: center; gap: 8px; padding: 4px 6px; }
.pn-col__head h2 { font-size: 14px; font-weight: 800; }
.pn-col__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.pn-col.is-nuevo .pn-col__dot { background: var(--amber); }
.pn-col.is-contactado .pn-col__dot { background: var(--brand); }
.pn-col.is-test-ride .pn-col__dot { background: var(--sky); }
.pn-col.is-reservada .pn-col__dot { background: #b98cff; }
.pn-col.is-vendida .pn-col__dot { background: var(--ok); }
.pn-col__count { margin-left: auto; padding: 1px 8px; border-radius: var(--r-pill); background: var(--surface-3); font-size: 12px; font-weight: 800; }
.pn-col__sum { padding: 0 6px; color: var(--ok); font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.pn-col__list { display: grid; gap: 8px; flex: 1; align-content: start; }
.pn-lead { display: grid; gap: 8px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); cursor: grab; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.pn-lead:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.pn-lead:focus-visible { outline: 2px solid var(--brand); }
.pn-lead.is-dragging { opacity: .45; transform: rotate(2deg); }
.pn-lead.is-flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 var(--brand-glow); } 60% { box-shadow: 0 0 0 8px transparent; } }
.pn-lead[hidden] { display: none; }
.pn-lead__top { display: flex; justify-content: space-between; gap: 8px; }
.pn-lead__top strong { font-size: 14px; }
.pn-lead__top small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.pn-lead__moto { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.pn-lead__img { width: 34px; height: 26px; border-radius: 6px; object-fit: cover; }
.pn-lead__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pn-tag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand-text); font-size: 11px; font-weight: 700; }
.pn-tag .icon { width: 11px; height: 11px; }
.pn-tag--ghost { background: var(--surface-3); color: var(--muted); }
.pn-lead__value { color: var(--ok); font-weight: 800; font-size: 14px; }

/* ---------- Ficha lateral de la consulta ---------- */
.pn-drawer { position: fixed; inset: 0; z-index: 90; }
.pn-drawer__backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .45); backdrop-filter: blur(4px); animation: fade .25s var(--ease); }
.pn-drawer__panel { position: absolute; inset: 0 0 0 auto; width: min(480px, 100%); display: flex; flex-direction: column; background: var(--surface); box-shadow: var(--shadow-3); animation: slide-in .4s var(--ease-out); }
.pn-drawer__head { display: flex; justify-content: space-between; gap: 16px; padding: 24px 24px 16px; border-bottom: 1px solid var(--line); }
.pn-drawer__head .eyebrow { margin-bottom: 6px; color: var(--brand-text); }
.pn-drawer__head h2 { font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; }
.pn-drawer__body { display: grid; gap: 18px; padding: 20px 24px 32px; overflow-y: auto; align-content: start; }
.pn-drawer__contact { display: flex; flex-wrap: wrap; gap: 8px; }
.pn-drawer__moto { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r); background: var(--surface-2); }
.pn-drawer__moto img { width: 72px; height: 54px; border-radius: 10px; object-fit: cover; }
.pn-drawer__moto div { display: flex; flex-direction: column; }
.pn-drawer__sub { font-size: 14px; font-weight: 800; margin-top: 4px; }
.pn-quote { margin: 0; padding: 14px 16px; border-left: 3px solid var(--brand); border-radius: 0 var(--r-s) var(--r-s) 0; background: var(--brand-soft); color: var(--ink); font-size: 15px; }
.pn-notes { display: grid; gap: 10px; }
.pn-notes li { position: relative; padding-left: 18px; font-size: 14px; }
.pn-notes li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.pn-notes li.is-system::before { background: var(--line-2); }
.pn-notes small { display: block; color: var(--muted); font-size: 12px; }
.pn-notes li.is-system span { color: var(--muted); }
.pn-note-form { display: grid; gap: 8px; }
.pn-note-form textarea { width: 100%; padding: 12px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--surface-2); resize: vertical; }
.pn-note-form textarea:focus { outline: none; border-color: var(--brand); }
.pn-note-form .btn { justify-self: end; }

/* ---------- Tablas ---------- */
.pn-table-wrap { overflow-x: auto; }
.pn-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pn-table th { padding: 12px 12px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.pn-table td { padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pn-table tr:last-child td { border-bottom: 0; }
.pn-table tbody tr { transition: background var(--t-fast) var(--ease); }
.pn-table tbody tr:hover { background: var(--surface-2); }
.pn-table tr.is-pausada { opacity: .62; }
.pn-table tr.is-vendida td { color: var(--muted); }
.pn-table tr[hidden] { display: none; }
.pn-moto { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.pn-moto > span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.35; }
.pn-moto small { color: var(--muted); font-size: 12px; }
.pn-input, .pn-money input { width: 100%; min-width: 104px; min-height: 38px; padding: 6px 10px; border-radius: var(--r-xs); border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; font-variant-numeric: tabular-nums; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.pn-input:focus, .pn-money input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pn-input--xs { width: 72px; min-width: 72px; }
.pn-input.is-warn { border-color: var(--amber); }
.pn-money { position: relative; display: block; min-width: 128px; }
.pn-money span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.pn-money input { padding-left: 22px; }
.pn-row-actions { display: flex; align-items: center; gap: 6px; }
.pn-row-actions .icon-btn { min-width: 38px; height: 38px; }
.pn-row-actions .icon { width: 17px; height: 17px; }
.pn-cellbar { display: grid; gap: 4px; min-width: 120px; }
.pn-cellbar i { display: block; height: 5px; border-radius: 5px; background: var(--brand); }

/* ---------- Interruptor ---------- */
.pn-switch-toggle { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.pn-switch-toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.pn-switch-toggle span { position: absolute; inset: 0; border-radius: 26px; background: var(--surface-3); transition: background var(--t-fast) var(--ease); }
.pn-switch-toggle span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform var(--t-fast) var(--ease-out); }
.pn-switch-toggle input:checked + span { background: var(--brand); }
.pn-switch-toggle input:checked + span::after { transform: translateX(18px); }
.pn-switch-toggle input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.pn-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0; cursor: pointer; }
.pn-toggle-row > span:first-child { display: flex; flex-direction: column; }
.pn-toggle-row small { color: var(--muted); font-size: 13px; }

/* ---------- Formularios del panel ---------- */
.pn-fieldset { display: grid; gap: 14px; margin: 0; padding: 0 0 20px; border: 0; border-bottom: 1px solid var(--line); }
.pn-fieldset legend { padding: 0; margin-bottom: 12px; font-weight: 800; font-size: 15px; }
.pn-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.pn-swatches label { position: relative; cursor: pointer; }
.pn-swatches input { position: absolute; opacity: 0; }
.pn-swatches span { display: block; width: 36px; height: 36px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); transition: transform var(--t-fast) var(--ease); }
.pn-swatches input:checked + span { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); transform: scale(1.05); }
.pn-swatches__custom input { position: static; opacity: 1; width: 36px; height: 36px; padding: 0; border: 1px dashed var(--line-2); border-radius: 12px; background: transparent; cursor: pointer; }
.pn-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; max-height: 196px; overflow-y: auto; padding: 2px; }
.pn-picker--wide { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.pn-picker label { position: relative; cursor: pointer; border-radius: 10px; overflow: hidden; }
.pn-picker input { position: absolute; opacity: 0; }
.pn-picker img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 3px solid transparent; transition: border-color var(--t-fast) var(--ease); }
.pn-picker input:checked + img { border-color: var(--brand); }
.pn-picker input:focus-visible + img { outline: 2px solid var(--brand); }
.pn-sticky-save { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 16px 0 4px; background: linear-gradient(transparent, var(--surface) 30%); }
.pn-modal { max-width: min(620px, calc(100% - 32px)); }
.pn-modal--wide { max-width: min(760px, calc(100% - 32px)); }
.pn-modal .modal__card { background: var(--surface); }
.pn-modal select[multiple] { min-height: 120px; padding: 8px; }
.pn-copy { display: flex; gap: 4px; }
.pn-copy input { flex: 1; font-family: ui-monospace, monospace; font-size: 13px; }
.pn-copy .icon-btn { border: 1px solid var(--line-2); }

/* ---------- Vista previa de la landing ---------- */
.pn-preview { position: sticky; top: 104px; display: grid; gap: 10px; }
.pn-preview__frame { border-radius: var(--r-l); overflow: hidden; background: #0c0a09; color: #faf7f4; box-shadow: var(--shadow-3); border: 1px solid var(--line); }
.pn-preview__hero { position: relative; height: 220px; }
.pn-preview__hero img { width: 100%; height: 100%; object-fit: cover; }
.pn-preview__shade { position: absolute; inset: 0; background: linear-gradient(0deg, #0c0a09, rgb(12 10 9 / .2) 60%), radial-gradient(60% 80% at 0% 100%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%); }
.pn-preview__id { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; align-items: flex-end; gap: 12px; }
.pn-preview__id .dealer-logo { --accent: inherit; width: 56px; height: 56px; }
.pn-preview__id strong { display: block; margin-top: 6px; font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; line-height: 1; }
.pn-preview__id .badge { color: #140a03; }
.pn-preview__body { display: grid; gap: 10px; padding: 18px 20px 22px; font-size: 14px; }
.pn-preview__body .icon { width: 14px; height: 14px; color: var(--accent); vertical-align: -2px; }
.pn-preview__body .pn-muted { color: #a0938a; }
.pn-preview__btns { display: flex; gap: 8px; margin-top: 6px; }
.pn-preview__btn { padding: 9px 16px; border-radius: var(--r-pill); background: var(--accent); color: #140a03; font-weight: 800; font-size: 13px; }
.pn-preview__btn.is-ghost { background: transparent; color: #faf7f4; border: 1px solid rgb(255 255 255 / .2); }

/* ---------- Integraciones ---------- */
.pn-integrations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.pn-int { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: border-color var(--t) var(--ease); }
.pn-int.is-on { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.pn-int__head { display: flex; align-items: center; gap: 12px; }
.pn-int__logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-3); font-family: var(--font-display); font-weight: 900; font-size: 15px; color: var(--ink-2); }
.pn-int.is-on .pn-int__logo { background: var(--ok-soft); color: var(--ok); }
.pn-int h3 { font-size: 16px; margin-bottom: 2px; }
.pn-int p { color: var(--ink-2); font-size: 14px; }
.pn-int .btn { align-self: flex-start; margin-top: auto; }
.pn-log { display: grid; gap: 10px; }
.pn-log li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.pn-log small { color: var(--muted); white-space: nowrap; }
.pn-log__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }

/* ---------- Plan ---------- */
.pn-plan-now { background: radial-gradient(80% 100% at 100% 0%, rgb(var(--brand-rgb) / .28), transparent 60%), #171310; border-color: #2b241f; }
.pn-plan-now h2 { font-family: var(--font-display); font-size: 36px; letter-spacing: -.03em; margin-bottom: 16px; }
.pn-plan-now h2 small { font-size: 16px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.pn-checks { display: grid; gap: 8px; margin-bottom: 24px; }
.pn-checks li { display: flex; gap: 10px; font-size: 15px; }
.pn-checks .icon { width: 18px; height: 18px; color: var(--brand); flex: none; }
.pn-usage { display: grid; gap: 8px; margin-bottom: 12px; }
.pn-usage p { display: flex; justify-content: space-between; font-size: 14px; }
.pn-usage__bar { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.pn-usage__bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--amber), var(--brand)); }

/* ---------- Estadísticas ---------- */
.pn-insights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pn-insights article { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.pn-insights .icon { width: 22px; height: 22px; flex: none; padding: 8px; box-sizing: content-box; border-radius: 12px; background: var(--brand-soft); color: var(--brand-text); }
.pn-insights div { display: flex; flex-direction: column; min-width: 0; }
.pn-insights small { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pn-insights strong { font-family: var(--font-display); font-size: 20px; letter-spacing: -.02em; line-height: 1.2; }
.pn-insights span { color: var(--muted); font-size: 13px; }

/* ---------- Ingreso ---------- */
.pn-login { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.pn-login__brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(32px, 5vw, 64px); background: radial-gradient(70% 70% at 100% 0%, rgb(var(--brand-rgb) / .3), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgb(var(--brand-rgb) / .14), transparent 60%), #0c0a09; overflow: hidden; }
.pn-login__title { font-family: var(--font-display); font-size: clamp(32px, 3.8vw, 54px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
.pn-login__title em { font-style: normal; color: var(--brand-2); }
.pn-login__points { display: grid; gap: 14px; margin-top: 32px; }
.pn-login__points li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 16px; }
.pn-login__points .icon { width: 22px; height: 22px; padding: 8px; box-sizing: content-box; border-radius: 12px; background: rgb(var(--brand-rgb) / .14); color: var(--brand); }
.pn-login__foot { color: var(--muted); font-size: 14px; }
.pn-login__foot a { color: var(--brand-2); font-weight: 700; }
.pn-login__form { display: grid; place-items: center; padding: 32px 24px; }
.pn-login__card { width: min(460px, 100%); display: grid; gap: 18px; }
.pn-login__card h2 { font-family: var(--font-display); font-size: 32px; letter-spacing: -.02em; }
.pn-demo { display: grid; gap: 10px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.pn-demo__title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.pn-demo__title .icon { width: 16px; height: 16px; color: var(--brand-text); }
.pn-demo__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pn-demo__list a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.pn-demo__list a:hover { border-color: var(--brand); transform: translateY(-2px); }
.pn-demo__list span:not(.dealer-logo) { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.pn-demo__list strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-demo__list small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-demo__list .icon { width: 16px; height: 16px; color: var(--muted); flex: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
	.pn-grid--3 { grid-template-columns: 1fr 1fr; }
	.pn-insights { grid-template-columns: 1fr 1fr; }
	.pn-chip { display: none; }
}
@media (max-width: 1024px) {
	.pn { grid-template-columns: 1fr; }
	.pn-side { position: fixed; inset: 0 auto 0 0; width: 280px; transform: translateX(-105%); transition: transform .35s var(--ease-out); box-shadow: var(--shadow-3); }
	.pn-side.is-open { transform: none; }
	.pn-top__menu { display: inline-grid; border: 1px solid var(--line-2); }
	.pn-grid--2-1, .pn-grid--editor { grid-template-columns: 1fr; }
	.pn-kpis { grid-template-columns: 1fr 1fr; }
	.pn-preview { position: static; }
	.pn-login { grid-template-columns: 1fr; }
	.pn-login__brand { min-height: auto; }
}
@media (max-width: 720px) {
	.pn-top { padding: 14px 16px; }
	.pn-top__title p, .pn-top__tools .btn, .pn-avatar { display: none; }
	.pn-content { padding: 20px 16px 48px; }
	.pn-grid--3, .pn-insights, .pn-integrations { grid-template-columns: 1fr; }
	.pn-kpis { gap: 10px; }
	.pn-kpi { padding: 14px; }
	.spark { display: none; }
	.pn-search { min-width: 0; flex: 1 1 100%; }
	.pn-toolbar__actions, .pn-toolbar__hint { margin-left: 0; }
	.pn-demo__list { grid-template-columns: 1fr; }
	.donut2 { grid-template-columns: 110px 1fr; }
	.donut2 svg { width: 110px; height: 110px; }
}

.pn-nowrap { white-space: nowrap; }
.pn-login code { white-space: nowrap; }

/* ---------- Taller ---------- */
.pn-agenda { display: grid; gap: 16px; }
.pn-day { border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; }
.pn-day.is-today { border-color: rgb(var(--brand-rgb) / .5); }
.pn-day__head { display: flex; align-items: baseline; gap: 10px; padding: 14px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.pn-day__head strong { font-family: var(--font-display); font-size: 18px; letter-spacing: -.01em; }
.pn-day.is-today .pn-day__head strong { color: var(--brand-text); }
.pn-day__head span { color: var(--muted); font-size: 14px; }
.pn-day__head em { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 700; color: var(--muted); }
.pn-turnos li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto auto; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.pn-turnos li:last-child { border-bottom: 0; }
.pn-turno__time { font-family: var(--font-display); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pn-turno__main { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.pn-turno__main small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-turno__value { font-weight: 800; font-variant-numeric: tabular-nums; }
.pn-turno.is-entregado { opacity: .55; }

/* ---------- Alertas de precio en Mis motos ---------- */
.pn-alert-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--r-s); background: var(--brand-soft); color: var(--ink); text-align: left; transition: background var(--t-fast) var(--ease); }
.pn-alert-btn:hover { background: rgb(var(--brand-rgb) / .22); }
.pn-alert-btn .icon { width: 16px; height: 16px; color: var(--brand-text); }
.pn-alert-btn span { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.pn-alert-btn strong { font-size: 13px; }
.pn-alert-btn small { color: var(--muted); font-size: 11px; }
@media (max-width: 720px) {
	.pn-turnos li { grid-template-columns: 56px 1fr; }
	.pn-turno__value, .pn-turnos .pn-status { grid-column: 2; justify-self: start; }
	.pn-turnos .pn-row-actions { grid-column: 1 / -1; }
}
.pn-side__top .logo { gap: 8px; }
.pn-side__top .logo-mark { width: 30px; height: 30px; }
.pn-side__top .logo__word { font-size: 19px; }
.pn-side__tag { font-size: 10px; padding: 2px 6px; }
