/* =========================================================
   negocio.css — «Regístrate» (público, prefijo rg-) y paneles
   «Solicitudes» y «Ventas» del administrador (prefijo ng-).
   ========================================================= */

/* ---------- Registro público ---------- */
.rg { max-width: 860px; margin: 0 auto; padding-bottom: 24px; }
.rg-hero { position: relative; overflow: hidden; border-radius: 26px; padding: 26px 26px 18px; color: #fff; background: linear-gradient(150deg, var(--violet-dark, #13327f), var(--violet, #1d4ed8) 70%); box-shadow: 0 18px 40px -18px rgba(15,31,77,.55); margin-bottom: 18px; }
.rg-hero::before { content: ""; position: absolute; inset: 0; background: var(--animal-hero) right -30px bottom -40px / 260px no-repeat; opacity: .9; pointer-events: none; }
.rg-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, #fcd116 0 50%, #003893 50% 75%, #ce1126 75%); }
.rg-hero__in { position: relative; display: flex; gap: 16px; align-items: center; }
.rg-hero__logo { flex: none; width: 74px; height: 74px; border-radius: 22px; background: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); font-size: 2.4rem; overflow: hidden; }
.rg-logo { width: 100%; height: 100%; object-fit: contain; }
.rg-eyebrow { font-size: .7rem; font-weight: 800; letter-spacing: .16em; opacity: .8; }
.rg-hero h1 { margin: 4px 0 6px; font-size: clamp(1.4rem, 4.2vw, 2rem); line-height: 1.12; color: #fff; }
.rg-hero p { margin: 0; opacity: .93; font-size: .96rem; line-height: 1.5; max-width: 54ch; }
.rg-steps { position: relative; list-style: none; display: flex; gap: 8px; margin: 20px 0 6px; padding: 0; }
.rg-steps li { flex: 1; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.12); font-size: .82rem; font-weight: 700; opacity: .75; transition: all .2s; min-width: 0; }
.rg-steps li span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); font-size: .85rem; }
.rg-steps li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-steps li.is-on { opacity: 1; background: #fff; color: var(--violet-dark, #13327f); box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.rg-steps li.is-on span { background: var(--brand-accent, #f5a623); color: #1a1a1a; }
.rg-steps li.is-ok { opacity: 1; }
.rg-steps li.is-ok span { background: #22c55e; color: #fff; }
.rg-card { background: #fff; border: 1px solid #e3e9f7; border-radius: 24px; padding: 22px; box-shadow: 0 10px 30px -18px rgba(15,31,77,.35); }
.rg-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rg-h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.rg-h > span { flex: none; width: 50px; height: 50px; display: grid; place-items: center; font-size: 1.6rem; border-radius: 16px; background: linear-gradient(135deg, #dbeafe, #e0e7ff); }
.rg-h h2 { margin: 0 0 3px; font-size: 1.25rem; }
.rg-h p { margin: 0; color: #5b6472; font-size: .9rem; line-height: 1.45; }
.rg-list { display: flex; flex-direction: column; gap: 16px; }
.rg-person { border: 1.5px solid #dbe3f5; border-radius: 20px; padding: 16px 16px 6px; background: linear-gradient(180deg, #fbfcff, #fff); }
.rg-person--est { border-left: 5px solid var(--brand-accent, #f5a623); }
.rg-person__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rg-person__h b { font-size: 1rem; color: #0f1f4d; }
.rg-badge { font-style: normal; font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #e4f6ea; color: #15803d; border: 1px solid #bfe6cb; }
.rg-x { border: 0; background: #ffe7e7; color: #b91c1c; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.rg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.rg-f--2 { grid-column: span 2; }
.rg-f input, .rg-f select, .rg-card textarea, .rg-otro input, .rg-school select { width: 100%; box-sizing: border-box; padding: 11px 13px; border-radius: 12px; border: 1.5px solid #dbe3f5; font: inherit; background: #fff; color: inherit; }
.rg-f input:focus, .rg-f select:focus, .rg-card textarea:focus, .rg-otro input:focus, .rg-school select:focus { outline: none; border-color: var(--violet, #1d4ed8); box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet, #1d4ed8) 18%, transparent); }
.rg-req { color: #dc2626; font-style: normal; }
.rg-f small { display: block; margin-top: 4px; font-size: .76rem; }
.rg-school { border: 1.5px dashed #c9d6f3; border-radius: 16px; padding: 12px 14px 4px; margin: 4px 0 12px; background: #f8faff; }
.rg-school legend { padding: 0 8px; font-weight: 800; font-size: .85rem; color: #0f1f4d; }
.rg .geo-picker__add, .rg .geo-picker__addform { display: none !important; }
.rg-otro { margin-top: 2px; }
.rg-otro label { font-size: .82rem; font-weight: 600; color: #5b6472; }
.rg-add { margin: 14px 0 4px; }
.rg-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.45; margin: 4px 0 12px; cursor: pointer; }
.rg-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--violet, #1d4ed8); }
.rg-consent { padding: 12px 14px; border-radius: 14px; background: #f3f7ff; border: 1.5px solid #c9d8fb; }
.rg-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.rg-sum__col { border: 1px solid #e3e9f7; border-radius: 16px; padding: 12px 14px; background: #fbfcff; }
.rg-sum__col h4 { margin: 0 0 8px; font-size: .9rem; color: #0f1f4d; }
.rg-sum__it { display: grid; gap: 1px; padding: 7px 0; border-top: 1px dashed #e3e9f7; }
.rg-sum__it:first-of-type { border-top: 0; }
.rg-sum__it small { color: #5b6472; font-size: .8rem; }
.rg-err { margin: 12px 0 0; padding: 11px 14px; border-radius: 12px; background: #ffe7e7; color: #b91c1c; font-weight: 700; font-size: .9rem; border: 1px solid #f6c3c3; }
.rg-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.rg-nav .btn { min-width: 140px; }
.rg-done { text-align: center; background: #fff; border: 1px solid #e3e9f7; border-radius: 24px; padding: 38px 24px; box-shadow: 0 10px 30px -18px rgba(15,31,77,.35); }
.rg-done__i { font-size: 3.2rem; margin-bottom: 6px; }
.rg-done h2 { margin: 0 0 8px; }
.rg-done p { max-width: 52ch; margin: 0 auto 16px; color: #475569; line-height: 1.55; }
.rg-next { text-align: left; max-width: 46ch; margin: 0 auto 22px; padding-left: 22px; display: grid; gap: 8px; color: #334155; }
.rg-foot { text-align: center; color: #64748b; font-size: .85rem; margin-top: 16px; }
@media (max-width: 640px) {
  .rg-hero { padding: 20px 18px 14px; border-radius: 22px; }
  .rg-hero__logo { width: 58px; height: 58px; font-size: 1.8rem; border-radius: 18px; }
  .rg-steps li b { display: none; }
  .rg-steps li { justify-content: center; }
  .rg-steps li.is-on b { display: block; }
  .rg-card { padding: 16px; border-radius: 20px; }
  .rg-grid, .rg-sum { grid-template-columns: 1fr; }
  .rg-f--2 { grid-column: auto; }
  .rg-nav .btn { min-width: 0; flex: 1; }
}

/* botón de la portada */
.pt-hero__acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.pt-hero__acts .pt-hero__cta { margin-top: 0; }
.pt-hero__reg { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--violet-dark, #13327f); font-weight: 800; padding: 9px 18px; border-radius: 999px; text-decoration: none; font-size: .9rem; box-shadow: 0 6px 16px rgba(0,0,0,.22); transition: transform .15s, box-shadow .15s; }
.pt-hero__reg:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.28); }
.pt-hero__reg::after { content: "→"; }

/* ---------- Paneles de administración: Solicitudes y Ventas ---------- */
.ng .ng-kpis { margin-bottom: 4px; }
.ng-code { background: #0f1f4d; color: #dbe7ff; padding: 12px 14px; border-radius: 12px; font-size: .82rem; overflow-x: auto; margin: 8px 0 0; }
.ng-chips { margin-bottom: 12px; }
.ng-chips .ax-fchip em { font-style: normal; opacity: .7; margin-left: 3px; font-size: .78rem; }
.ng-chips .ax-fchip.is-on em { opacity: .9; }
.ng-lead { --c: #1d4ed8; background: #fff; border: 1px solid #e6eaf5; border-left: 5px solid var(--c); border-radius: 18px; padding: 14px 16px; transition: box-shadow .15s; }
.ng-lead:hover { box-shadow: 0 8px 22px rgba(15,31,77,.1); }
.ng-lead.is-nueva { background: linear-gradient(100deg, #f3f7ff, #fff 55%); box-shadow: 0 0 0 2px rgba(29,78,216,.14); }
.ng-lead__top { display: flex; gap: 14px; align-items: flex-start; }
.ng-lead__main { flex: 1; min-width: 0; }
.ng-new { background: #dc2626; color: #fff; border-radius: 999px; font-size: .64rem; font-weight: 800; padding: 2px 8px; letter-spacing: .06em; animation: ngPulse 1.8s ease-in-out infinite; }
@keyframes ngPulse { 50% { opacity: .55; } }
.ng-lead__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e3e9f7; }
.ng-lead__acts .btn { text-decoration: none; }
.ng-wa { background: #25d366; color: #fff; border: 0; font-weight: 800; }
.ng-wa:hover { background: #1ebe5a; }
.ng-est { padding: 7px 10px; border-radius: 10px; border: 1.5px solid #dbe3f5; font: inherit; font-size: .84rem; background: #fff; margin-left: auto; }
.ng-more { border: 0; background: none; color: var(--violet, #1d4ed8); font: inherit; font-weight: 700; font-size: .84rem; cursor: pointer; padding: 6px 4px; }
.ng-lead__det { margin-top: 12px; padding: 14px; border-radius: 14px; background: #f8faff; border: 1px solid #e3e9f7; }
.ng-det-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ng-det-grid h5 { margin: 0 0 6px; font-size: .88rem; color: #0f1f4d; }
.ng-det-grid p { margin: 0 0 8px; font-size: .88rem; line-height: 1.45; }
.ng-det-grid small { color: #5b6472; }
.ng-coment { margin: 6px 0; padding: 9px 12px; border-radius: 12px; background: #fff8e1; font-size: .88rem; }
.ng-hecho { margin: 6px 0; font-weight: 700; color: #15803d; font-size: .88rem; }
.ng-notas { display: block; margin: 10px 0; }
.ng-notas span { display: block; font-weight: 700; font-size: .84rem; margin-bottom: 4px; }
.ng-notas textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #dbe3f5; font: inherit; resize: vertical; }
.ng-del { color: #b91c1c; border-color: #f6c3c3; }
.ng-conv { margin-top: 14px; padding: 16px; border-radius: 16px; background: linear-gradient(180deg, #f3faf5, #fff); border: 1.5px solid #bfe6cb; }
.ng-conv__h { display: flex; gap: 12px; margin-bottom: 12px; }
.ng-conv__h > span { font-size: 1.6rem; }
.ng-conv__h h4 { margin: 0 0 2px; }
.ng-conv__h p { margin: 0; font-size: .86rem; color: #475569; line-height: 1.45; }
.ng-conv__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ng-fs { border: 1px solid #e3e9f7; border-radius: 14px; padding: 10px 14px 4px; margin: 0 0 12px; background: #fff; min-width: 0; }
.ng-fs legend { padding: 0 8px; font-weight: 800; font-size: .82rem; color: #0f1f4d; }
.ng-warn { font-style: normal; color: #b45309; font-size: .76rem; font-weight: 700; }
.ng-venta-f { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 4px 0 10px; }
.ng-venta-f[hidden] { display: none; }
.ng-venta-f label, .ng-form__g label, .ng-rango label { display: grid; gap: 4px; font-size: .8rem; font-weight: 700; color: #334155; }
.ng-venta-f input, .ng-venta-f select, .ng-form__g input, .ng-form__g select, .ng-rango input { padding: 10px 12px; border-radius: 11px; border: 1.5px solid #dbe3f5; font: inherit; font-weight: 500; background: #fff; min-width: 0; width: 100%; box-sizing: border-box; }
.ng-conv__out { margin: 4px 0 12px; }
.ng-msg { margin-top: 14px; padding: 14px; border-radius: 14px; background: #e7f9ee; border: 1.5px solid #9be3b6; }
.ng-msg h5 { margin: 0 0 8px; }
.ng-msg pre { white-space: pre-wrap; font: inherit; font-size: .86rem; background: #fff; border-radius: 12px; padding: 12px; margin: 0 0 10px; border: 1px solid #cfeedb; max-height: 260px; overflow: auto; }
/* Ventas */
.ng-per-chips { margin: 4px 0 12px; }
.ng-rango { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; background: #f6f8fd; border: 1px solid #e3e9f7; }
.ng-rango label { grid-auto-flow: column; align-items: center; }
.ng-rango[hidden] { display: none; }
.ng-metabox { margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(120deg, #fff8e8, #fff); border: 1.5px solid #f4dba6; }
.ng-metabox__t { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.ng-metabox__t span { color: #475569; font-size: .9rem; }
.ng-link { border: 0; background: none; color: var(--violet, #1d4ed8); font: inherit; font-weight: 800; font-size: .84rem; cursor: pointer; margin-left: auto; }
.ng-prog { height: 12px; border-radius: 999px; background: #f4e6c3; overflow: hidden; margin: 10px 0 6px; }
.ng-prog i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f59e0b, #22c55e); transition: width .5s; }
.ng-sec { margin: 0 0 18px; padding: 14px 16px; border: 1px solid #e3e9f7; border-radius: 18px; background: #fff; }
.ng-sec h4 { margin: 0 0 10px; font-size: .98rem; }
.ng-sec__h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.ng-sec__h h4 { margin: 0; }
.ng-chart__sc { overflow-x: auto; }
.ng-chart svg { width: 100%; height: auto; display: block; }
.ng-val { font-size: 10px; font-weight: 700; fill: #334155; }
.ng-lab { font-size: 10px; fill: #64748b; }
.ng-rep__g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 4px; }
.ng-rep__g .ng-sec { margin: 0; }
.ng-hb { display: grid; gap: 8px; }
.ng-hb__r { display: grid; grid-template-columns: minmax(70px, 120px) 1fr auto 38px; gap: 8px; align-items: center; font-size: .82rem; }
.ng-hb__r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ng-hb__t { height: 10px; border-radius: 999px; background: #eef1f8; overflow: hidden; }
.ng-hb__t i { display: block; height: 100%; border-radius: 999px; }
.ng-hb__r em { font-style: normal; color: #64748b; text-align: right; }
.ng-scroll { overflow-x: auto; }
.ng-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ng-table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b; padding: 8px 10px; border-bottom: 2px solid #e3e9f7; white-space: nowrap; }
.ng-table td { padding: 10px; border-bottom: 1px solid #eef1f8; vertical-align: top; }
.ng-table td small { display: block; color: #64748b; font-size: .76rem; }
.ng-table .n { text-align: right; white-space: nowrap; }
.ng-table tr.is-anulada td { opacity: .5; text-decoration: line-through; }
.ng-table tr.is-pendiente td:first-child { box-shadow: inset 4px 0 0 #f59e0b; }
.ng-table tfoot td { font-weight: 700; background: #f6f8fd; border-bottom: 0; }
.ng-act { white-space: nowrap; text-align: right; }
.ng-ico { border: 0; background: #f1f4fb; border-radius: 9px; width: 32px; height: 32px; cursor: pointer; font-size: .95rem; margin-left: 4px; }
.ng-ico:hover { background: #dbe7ff; }
.ng-form { margin: 0 0 18px; padding: 18px; border-radius: 20px; background: linear-gradient(180deg, #f3f7ff, #fff); border: 1.5px solid #c9d8fb; }
.ng-form__h { display: flex; gap: 12px; margin-bottom: 14px; }
.ng-form__h > span { font-size: 1.6rem; }
.ng-form__h h4 { margin: 0 0 2px; }
.ng-form__h p { margin: 0; font-size: .86rem; color: #475569; }
.ng-form__g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.ng-form__g .w2 { grid-column: span 2; }
.ng-form__g .w3 { grid-column: span 3; }
/* dashboard principal: negocio compacto + visitas en vivo */
.ngd { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(min(220px, 100%), 1fr); gap: 12px; margin: 0 0 14px; }
.ngd__biz { padding: 12px 14px; border-radius: 18px; background: #fff; border: 1px solid #e3e9f7; box-shadow: 0 6px 18px -14px rgba(15,31,77,.5); min-width: 0; }
.ngd__live { padding: 12px 14px; border-radius: 18px; color: #fff; display: flex; flex-direction: column; gap: 8px; background: radial-gradient(circle at 100% 0%, rgba(45,212,191,.4), transparent 50%), linear-gradient(135deg, #052e2b, #065f46 60%, #0f766e); min-width: 0; }
.ngd__h, .ngd__lh { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .9rem; }
.ngd__lh { margin-bottom: 0; }
.ngd__go { border: 0; background: none; font: inherit; font-size: .76rem; font-weight: 800; color: var(--violet, #1d4ed8); cursor: pointer; padding: 2px 0; white-space: nowrap; }
.ngd__live .ngd__go { color: #99f6e4; }
.ngd__ms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ngd__m { display: flex; gap: 8px; align-items: center; text-align: left; border: 1px solid #e9eef9; background: #f8faff; border-radius: 12px; padding: 7px 9px; font: inherit; cursor: pointer; min-width: 0; transition: background .15s, transform .15s; }
.ngd__m:hover { background: #eef3ff; transform: translateY(-1px); }
.ngd__m.is-hot { background: #fff3d9; border-color: #f4dba6; }
.ngd__m > span { font-size: 1.05rem; flex: none; }
.ngd__m b { display: block; font-size: .98rem; line-height: 1.1; color: #0f1f4d; white-space: nowrap; }
.ngd__m em { display: block; font-style: normal; font-size: .66rem; font-weight: 700; color: #64748b; line-height: 1.2; }
.ngd__m i { display: block; font-style: normal; font-size: .62rem; font-weight: 700; color: #15803d; line-height: 1.2; }
.ngd__sp { display: flex; align-items: flex-end; gap: 10px; margin-top: 8px; }
.ngd__sp svg { flex: 1; height: 34px; min-width: 0; }
.ngd__sp small { font-size: .66rem; color: #94a3b8; white-space: nowrap; }
@media (max-width: 980px) { .ngd { grid-template-columns: 1fr; } .ngd__ms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ngd__ms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .ng-det-grid, .ng-conv__cols, .ng-rep__g { grid-template-columns: 1fr; }
  .ng-venta-f { grid-template-columns: 1fr; }
  .ng-form__g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ng-form__g .w3 { grid-column: span 2; }
  .ng-est { margin-left: 0; }
  .ng-hb__r { grid-template-columns: minmax(60px, 90px) 1fr auto; }
  .ng-hb__r em { display: none; }
  .ng-lead { padding: 12px; }
}
.ng .ax-kpis { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.ng .ax-kpi__b b { font-size: 1.3rem; white-space: nowrap; }
.rg-done .btn, .ng a.btn { text-decoration: none; }

/* ---------- Plan de ventas ---------- */
.pv-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(308px, 100%), 308px)); justify-content: center; gap: 24px; align-items: stretch; grid-auto-rows: 1fr; margin: 8px 0 26px; }
.pv-item { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.pv-item .pvc { width: 100%; max-width: 100%; font-size: 14px; flex: 1 1 auto; }
.pv-item .pvc.pvg { width: 46em; }
.pv-item--wide .pvc:not(.pvg) { width: 22em; flex: none; }
/* Sin tarjetas huérfanas: 4 planes → 2×2, 2 planes → 2, 6 planes → 3×2 (3 y 5 se reparten solos) */
.pv-row[data-n="2"], .pv-row[data-n="4"] { max-width: 640px; margin-inline: auto; }
.pv-row[data-n="6"] { max-width: 972px; margin-inline: auto; }
.pv-item--wide { grid-column: 1 / -1; }
@media (max-width: 480px) { .pv-row { gap: 18px; } }
.pv-acts { margin-top: auto; padding-top: 2px; }
.pv-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pv-grid { background: linear-gradient(180deg, #f4f7fd, #fff); border-radius: 22px; padding: 26px clamp(10px, 3vw, 28px) 10px; border: 1px solid #e3e9f7; margin-bottom: 16px; overflow-x: auto; }
.pv-edit { margin: 0 0 18px; }
.pv-form { display: grid; gap: 4px; }
.pv-form label { display: grid; gap: 4px; font-size: .8rem; font-weight: 700; color: #334155; margin-bottom: 10px; }
.pv-form input, .pv-form textarea { padding: 10px 12px; border-radius: 11px; border: 1.5px solid #dbe3f5; font: inherit; font-weight: 500; background: #fff; width: 100%; box-sizing: border-box; }
.pv-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.pv-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.pv-sw { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; font-size: .8rem; font-weight: 700; color: #334155; }
.pv-swb { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px #cbd5e1; cursor: pointer; }
.pv-swb.is-on { box-shadow: 0 0 0 3px var(--violet, #1d4ed8); }
.pv-tr { margin-bottom: 12px; display: grid; gap: 8px; }
.pv-trow { display: grid; grid-template-columns: 1fr 1fr 1.3fr auto; gap: 10px; align-items: end; }
.pv-trow label { margin: 0; }
.pv-ref { margin-top: 6px; border: 1px solid #e3e9f7; border-radius: 16px; padding: 4px 16px; background: #fbfcff; }
.pv-ref summary { cursor: pointer; font-weight: 800; padding: 10px 0; }
.pv-ref__b { padding-bottom: 10px; font-size: .9rem; line-height: 1.5; }
.pv-ref__b h5 { margin: 14px 0 6px; }
.pv-ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
@media (max-width: 700px) { .pv-two, .pv-three { grid-template-columns: 1fr; } .pv-trow { grid-template-columns: 1fr 1fr; } }

/* ---------- Visitas ---------- */
.vis-dot { width: 14px; height: 14px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: visPulse 1.6s infinite; flex: none; }
@keyframes visPulse { 70% { box-shadow: 0 0 0 14px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.vis-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; align-items: center; padding: 22px 24px; border-radius: 24px; color: #fff; background: radial-gradient(circle at 90% 0%, rgba(45,212,191,.45), transparent 45%), linear-gradient(135deg, #052e2b, #065f46 55%, #0f766e); box-shadow: 0 18px 40px -20px rgba(4,120,87,.9); margin-bottom: 14px; }
.vis-hero::after { content: "🌎"; position: absolute; right: -10px; bottom: -34px; font-size: 8rem; opacity: .1; pointer-events: none; }
.vis-hero__n { display: flex; align-items: center; gap: 14px; }
.vis-hero__n b { font-size: 3.6rem; line-height: 1; font-weight: 900; letter-spacing: -.03em; }
.vis-hero__n strong { display: block; font-size: 1.05rem; }
.vis-hero__n small { opacity: .8; font-size: .8rem; }
.vis-hero__s { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.vis-hero__s div { display: grid; }
.vis-hero__s b { font-size: 1.4rem; line-height: 1.1; }
.vis-hero__s span { font-size: .74rem; opacity: .8; font-weight: 600; }
.vis-hero__c { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.2); padding-top: 12px; position: relative; z-index: 1; }
.vis-pais { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 5px 12px; font-size: .84rem; font-weight: 700; }
.vis-pais b { background: #fff; color: #047857; border-radius: 999px; padding: 0 7px; margin-left: 4px; }
.vis-pais--v { opacity: .8; font-weight: 600; }
.vis-conn { margin: 0 0 6px; border: 1px solid #e3e9f7; border-radius: 16px; background: #fff; }
.vis-tabla td small { display: block; color: #64748b; font-size: .76rem; }
.vis-fl { font-size: 1.15rem; }
.vis-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.vis-tile { display: flex; gap: 11px; align-items: center; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, var(--s), #fff 85%); border: 1px solid var(--b); min-width: 0; }
.vis-tile__i { flex: none; width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.2rem; border-radius: 13px; background: #fff; box-shadow: 0 1px 5px rgba(15,31,77,.12); }
.vis-tile b { display: block; font-size: 1.4rem; line-height: 1.1; color: var(--c); font-weight: 800; white-space: nowrap; }
.vis-tile em { display: block; font-style: normal; font-size: .74rem; font-weight: 700; color: #64748b; line-height: 1.25; }
.vis-d { display: inline-block; font-style: normal; font-size: .7rem; font-weight: 800; margin-top: 2px; color: #64748b; }
.vis-d.up { color: #15803d; } .vis-d.dn { color: #b91c1c; }
.vis-bar { margin: 4px 0 10px; }
.vis-sub { margin: 16px 0 8px; font-size: .9rem; }
.vis-fun { display: grid; gap: 8px; }
.vis-f { display: grid; grid-template-columns: minmax(130px, 200px) 1fr 54px minmax(0, 190px); gap: 10px; align-items: center; font-size: .86rem; }
.vis-f > span { font-weight: 700; }
.vis-f__t { height: 16px; border-radius: 999px; background: #eef1f8; overflow: hidden; }
.vis-f__t i { display: block; height: 100%; border-radius: 999px; }
.vis-f b { text-align: right; } .vis-f em { font-style: normal; color: #64748b; font-size: .78rem; }
.vis-wide { grid-column: 1 / -1; }
.vis-horas { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; height: 130px; align-items: end; margin-bottom: 6px; }
.vis-h { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.vis-h i { display: block; width: 100%; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #4f46e5, #2563eb); opacity: .9; min-height: 2px; }
.vis-h span { font-size: .64rem; color: #64748b; height: 12px; margin-top: 2px; }
.vis-donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.vis-donut__r { position: relative; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.vis-donut__r::before { content: ""; position: absolute; inset: 24px; background: #fff; border-radius: 50%; }
.vis-donut__r span { position: relative; font-weight: 900; font-size: 1.15rem; }
.vis-donut ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .86rem; }
.vis-donut li { display: flex; align-items: center; gap: 8px; }
.vis-donut li i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.vis-donut li b { margin-left: auto; padding-left: 12px; }
.vis-pk { display: grid; gap: 8px; }
.vis-pk__r { display: grid; grid-template-columns: 38px minmax(min(110px, 100%), 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; background: #fbfcff; border: 1px solid #e9eef9; font-size: .9rem; }
.vis-pk__r.is-1 { background: linear-gradient(100deg, #fff8e1, #fff); border-color: #f4dba6; }
.vis-pk__m { font-size: 1.3rem; text-align: center; font-weight: 800; }
.vis-pk__n { font-weight: 900; font-size: 1.2rem; color: var(--violet, #1d4ed8); }
.vis-pk__n small { font-size: .7rem; color: #64748b; font-weight: 600; }
.vis-como { margin-top: 6px; padding: 4px 16px; border: 1px solid #e3e9f7; border-radius: 16px; background: #fbfcff; font-size: .86rem; line-height: 1.5; }
.vis-como summary { cursor: pointer; font-weight: 800; padding: 10px 0; }
.vis-como ul { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
@media (max-width: 860px) { .vis-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vis-f { grid-template-columns: 1fr 50px; } .vis-f__t { grid-column: 1 / -1; order: 3; } .vis-f em { display: none; } }
@media (max-width: 700px) { .vis-hero { grid-template-columns: 1fr; } .vis-pk__r { grid-template-columns: 34px 1fr auto; } .vis-pk__r small { display: none; } }
/* mini «en vivo» del dashboard */
.vis-mini { display: flex; flex-direction: column; gap: 10px; }
.vis-mini__n { display: flex; align-items: center; gap: 10px; }
.vis-mini__n b { font-size: 2.4rem; font-weight: 900; line-height: 1; }
.vis-mini__n em { font-style: normal; font-size: .76rem; font-weight: 700; opacity: .85; line-height: 1.15; }
.vis-mini__c { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
.vis-mini__c .vis-pais { font-size: .74rem; padding: 3px 9px; }
.vis-mini__vacio { font-size: .78rem; opacity: .75; }
.vis-mini__f { display: flex; justify-content: space-between; font-size: .76rem; opacity: .9; border-top: 1px solid rgba(255,255,255,.22); padding-top: 8px; margin-top: auto; }

/* ---------- Ventas: banner, tiles y registros nuevos ---------- */
.vt-banner { display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; align-items: center; padding: 22px 26px; border-radius: 24px; color: #fff; margin: 0 0 12px; background: radial-gradient(circle at 100% 0%, rgba(251,191,36,.35), transparent 45%), linear-gradient(135deg, #0f1f4d, #1e3a8a 60%, #4338ca); box-shadow: 0 18px 40px -22px rgba(30,58,138,.9); }
.vt-eyebrow { font-size: .7rem; font-weight: 800; letter-spacing: .14em; opacity: .75; }
.vt-big { display: block; font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 900; line-height: 1.1; letter-spacing: -.02em; margin: 4px 0 8px; }
.vt-sub { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .86rem; opacity: .95; }
.vt-chip { padding: 3px 11px; border-radius: 999px; font-weight: 800; font-size: .78rem; background: rgba(255,255,255,.18); }
.vt-chip.up { background: rgba(74,222,128,.25); color: #bbf7d0; } .vt-chip.dn { background: rgba(248,113,113,.28); color: #fecaca; }
.vt-meta { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 20px; padding: 14px 18px; max-width: 420px; }
.vt-ring { --p: 0; flex: none; width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#fbbf24 calc(var(--p) * 1%), rgba(255,255,255,.2) 0); position: relative; }
.vt-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #1e3a8a; }
.vt-ring span { position: relative; font-weight: 900; font-size: 1.1rem; }
.vt-meta__t { display: grid; gap: 2px; font-size: .84rem; }
.vt-meta__t small { opacity: .85; font-size: .76rem; }
.vt-link { justify-self: start; border: 0; background: none; color: #fde68a; font: inherit; font-weight: 800; font-size: .8rem; cursor: pointer; padding: 3px 0 0; }
.vt-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 10px; margin: 0 0 16px; }
.vt-tile { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 16px; background: linear-gradient(135deg, var(--s), #fff 85%); border: 1px solid var(--b); min-width: 0; }
.vt-tile > span { flex: none; width: 38px; height: 38px; display: grid; place-items: center; font-size: 1.15rem; border-radius: 12px; background: #fff; box-shadow: 0 1px 5px rgba(15,31,77,.12); }
.vt-tile b { display: block; font-size: 1.25rem; line-height: 1.1; color: var(--c); font-weight: 800; white-space: nowrap; }
.vt-tile em { display: block; font-style: normal; font-size: .74rem; font-weight: 700; color: #64748b; }
.vt-nuevos { margin: 0 0 18px; padding: 16px; border-radius: 20px; background: linear-gradient(180deg, #f3f7ff, #fff); border: 1.5px solid #c9d8fb; }
.vt-nuevos__h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.vt-nuevos__h h4 { margin: 0 0 2px; font-size: 1rem; } .vt-nuevos__h p { margin: 0; font-size: .84rem; color: #475569; }
.vt-badge { background: #dc2626; color: #fff; font-weight: 800; border-radius: 999px; padding: 3px 12px; font-size: .85rem; }
.vt-nuevos__g { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 10px; }
.vt-nv { --c: #1d4ed8; display: grid; grid-template-columns: 44px 1fr; gap: 6px 12px; align-items: center; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid #e6eaf5; border-left: 4px solid var(--c); }
.vt-nv .ax-av { width: 44px; height: 44px; border-radius: 14px; font-size: .95rem; }
.vt-nv__b { display: grid; min-width: 0; } .vt-nv__b b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vt-nv__b small { color: #64748b; font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-nv__a { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .vt-banner { grid-template-columns: 1fr; padding: 18px; } .vt-meta { max-width: none; } }
.vt-tiles { grid-template-columns: repeat(auto-fit, minmax(min(135px, 100%), 1fr)); }
.vt-tile { padding: 10px 11px; gap: 8px; }
.vt-tile > span { width: 34px; height: 34px; }
.vt-tile b { font-size: 1.08rem; }

/* ---------- Barra lateral del administrador (un solo estilo) ---------- */
.adm--admin .adm-side { padding: 14px 12px; gap: 4px; font-family: inherit; }
.adm--admin .adm-brand { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 16px; cursor: pointer; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); transition: background .15s, transform .15s; margin-bottom: 8px; }
.adm--admin .adm-brand:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.adm--admin .adm-brand:focus-visible { outline: 2px solid var(--adm-acc); }
.adm--admin .adm-brand__logo { width: 42px; height: 42px; border-radius: 13px; background: #fff; overflow: hidden; flex: none; display: grid; place-items: center; }
.adm--admin .adm-brand__logo img { width: 100%; height: 100%; object-fit: contain; }
.adm--admin .adm-brand__t { display: grid; min-width: 0; line-height: 1.2; }
.adm--admin .adm-brand__t strong { font-size: .98rem; font-weight: 800; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm--admin .adm-brand__t small { font-size: .72rem; font-weight: 600; color: #9fb3e8; }
.adm--admin .adm-nav { gap: 2px; }
.adm--admin .adm-nav__group { font: inherit; font-size: .68rem; font-weight: 800; letter-spacing: .15em; color: #8da2da; padding: 14px 10px 6px; text-transform: uppercase; }
.adm--admin .adm-nav__group--toggle { padding: 11px 10px; margin-top: 2px; border-radius: 12px; }
.adm--admin .adm-nav__group--toggle.is-open { color: #fff; background: rgba(255,255,255,.07); }
.adm--admin .adm-nav__chev { font-size: .7rem; opacity: .8; }
.adm--admin .adm-nav__items { gap: 2px; padding: 2px 0 6px; }
.adm--admin .adm-nav__item { font: inherit; font-size: .9rem; font-weight: 600; letter-spacing: 0; gap: 11px; padding: 7px 10px; min-height: 40px; border-radius: 12px; color: #d3def9; }
.adm--admin .adm-nav__ico { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 1rem; line-height: 1; background: rgba(255,255,255,.08); }
.adm--admin .adm-nav__item:hover .adm-nav__ico { background: rgba(255,255,255,.16); }
.adm--admin .adm-nav__item.is-active { background: linear-gradient(90deg, rgba(56,189,248,.26), rgba(56,189,248,.07)); box-shadow: none; color: #fff; }
.adm--admin .adm-nav__item.is-active .adm-nav__ico { background: var(--adm-acc); box-shadow: 0 2px 8px rgba(56,189,248,.45); }
.adm--admin .adm-nav__badge { font-size: .7rem; padding: 1px 8px; }
.adm--admin .adm-side__foot { margin-top: auto; padding-top: 10px; text-align: center; }
.adm--admin .adm-top { align-items: flex-start; }
/* nombre del administrador junto a «Cerrar sesión» */
.hdr-adm { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 9px; padding: 4px 14px 4px 5px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.14); color: #fff; font: inherit; cursor: pointer; transition: background .15s; }
.hdr-adm:hover { background: rgba(255,255,255,.26); }
.hdr-adm[hidden] { display: none; }
.hdr-adm__av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .95rem; background: linear-gradient(135deg, #fcd116, #f59e0b); color: #1a1a1a; flex: none; }
.hdr-adm__t { display: grid; text-align: left; line-height: 1.15; }
.hdr-adm__t b { font-size: .84rem; font-weight: 800; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr-adm__t small { font-size: .66rem; font-weight: 700; opacity: .8; letter-spacing: .04em; }
.hdr-adm:not([hidden]) ~ #btn-session { margin-left: 8px; }
@media (max-width: 640px) { .hdr-adm__t { display: none; } .hdr-adm { padding: 4px; } }

.vis-conn__h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 2px 8px; font-size: .9rem; }
.vis-conn__h span { color: #64748b; font-size: .8rem; font-weight: 700; }

/* Avatares (Apariencia) */
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.av-chip { position: relative; }
.av-chip__b { width: 100%; aspect-ratio: 1; border-radius: 16px; border: 2px solid #c9d8fb; background: #f3f7ff; font-size: 1.7rem; cursor: pointer; transition: transform .12s, border-color .12s; }
.av-chip__b:hover { transform: translateY(-2px); border-color: var(--violet, #1d4ed8); }
.av-chip.is-extra .av-chip__b { border-color: #f4dba6; background: #fff8e1; }
.av-chip.is-off .av-chip__b { opacity: .3; filter: grayscale(1); border-style: dashed; background: #fff; }
.av-chip__x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #dc2626; color: #fff; font-size: .65rem; font-weight: 800; cursor: pointer; }
.av-res { margin: 0 0 10px; font-size: .84rem; }
.ngd__ms { grid-template-columns: repeat(auto-fit, minmax(min(118px, 100%), 1fr)); }
@media (max-width: 1250px) { .ngd { grid-template-columns: 1fr; } }

/* ---------- Editor del plan de ventas (pestañas + vista previa) ---------- */
.pv-ed { border: 1.5px solid #c9d8fb; border-radius: 22px; background: linear-gradient(180deg, #f6f9ff, #fff); overflow: hidden; }
.pv-ed__tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 12px; background: #eaf0fd; border-bottom: 1px solid #d5e0f8; }
.pv-tab { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: #475569; font: inherit; font-weight: 700; font-size: .88rem; padding: 9px 16px; border-radius: 12px; cursor: pointer; transition: background .15s, color .15s; }
.pv-tab:hover { background: rgba(255,255,255,.7); color: #1e3a8a; }
.pv-tab.is-on { background: #fff; color: var(--violet, #1d4ed8); box-shadow: 0 2px 8px rgba(30,58,138,.14); }
.pv-ed__body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; padding: 18px; align-items: start; }
.pv-ed__body.is-wide { grid-template-columns: minmax(0, 1fr) 520px; }
.pv-ed__prev { position: sticky; top: 10px; border-radius: 18px; background: #eef2fa; border: 1px solid #dbe3f5; padding: 12px; min-width: 0; }
.pv-ed__ph { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: .86rem; }
.pv-ed__ph small { color: #64748b; font-size: .72rem; }
.pv-ed__sc .pvc { font-size: 14.5px; margin: 0 auto; }
.pv-ed__sc.is-wide .pvc { font-size: 10.4px; }
.pv-ed__box { overflow: hidden; }
.pv-fg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.pv-f { display: grid; gap: 5px; margin-bottom: 12px; font-size: .78rem; font-weight: 800; color: #334155; align-content: start; min-width: 0; }
.pv-f.w2 { grid-column: 1 / -1; }
.pv-f small { font-weight: 600; color: #94a3b8; }
.pv-f input, .pv-f textarea, .pv-trow input { padding: 10px 12px; border-radius: 11px; border: 1.5px solid #dbe3f5; font: inherit; font-weight: 500; background: #fff; width: 100%; box-sizing: border-box; }
.pv-f input:focus, .pv-f textarea:focus, .pv-trow input:focus { outline: none; border-color: var(--violet, #1d4ed8); box-shadow: 0 0 0 3px rgba(29,78,216,.14); }
.pv-sub { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pv-subb { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #dbe3f5; background: #fff; border-radius: 999px; padding: 6px 14px 6px 8px; font: inherit; font-weight: 700; font-size: .84rem; cursor: pointer; color: #334155; }
.pv-subb i { width: 18px; height: 18px; border-radius: 50%; display: block; }
.pv-subb.is-on { border-color: var(--violet, #1d4ed8); background: #eef3ff; color: var(--violet, #1d4ed8); box-shadow: 0 2px 8px rgba(29,78,216,.15); }
.pv-subb--add { padding-left: 14px; border-style: dashed; color: #1d4ed8; }
.pv-row-b { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-ed__bar { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 18px; border-top: 1px solid #e3e9f7; background: #fbfcff; position: sticky; bottom: 0; }
.pv-ed__reset { margin-left: auto; }
@media (max-width: 900px) { .pv-ed__body, .pv-ed__body.is-wide { grid-template-columns: 1fr; } .pv-ed__prev { position: static; } .pv-ed__sc.is-wide .pvc { font-size: 12px; } .pv-fg { grid-template-columns: 1fr; } }

/* ---------- Plan de ventas: pantalla principal con pestañas ---------- */
.pv-hero { display: grid; grid-template-columns: 1fr auto; gap: 16px 26px; align-items: center; padding: 20px 24px; border-radius: 22px; color: #fff; margin: 0 0 14px; background: radial-gradient(circle at 100% 0%, rgba(252,209,22,.38), transparent 45%), linear-gradient(135deg, #0f1f4d, #1e3a8a 60%, #4338ca); box-shadow: 0 16px 36px -22px rgba(30,58,138,.9); }
.pv-hero__e { font-size: .68rem; font-weight: 800; letter-spacing: .16em; opacity: .75; }
.pv-hero__t b { display: block; font-size: clamp(1.2rem, 3.2vw, 1.7rem); line-height: 1.15; font-weight: 900; margin: 3px 0 6px; }
.pv-hero__t p { margin: 0; font-size: .86rem; opacity: .92; max-width: 56ch; line-height: 1.45; }
.pv-hero__s { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.pv-hero__s div { display: grid; text-align: center; padding: 9px 14px; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); min-width: 86px; }
.pv-hero__s b { font-size: 1.15rem; font-weight: 900; line-height: 1.1; white-space: nowrap; }
.pv-hero__s span { font-size: .66rem; font-weight: 700; opacity: .85; text-transform: uppercase; letter-spacing: .04em; }
.pv-mtabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 10px; background: #eaf0fd; border: 1px solid #d5e0f8; border-radius: 16px 16px 0 0; }
.pv-main > .pv-grid { border-radius: 0 0 22px 22px; border-top: 0; margin-top: 0; padding-top: 24px; min-height: 260px; }
.pv-ref__b { max-width: 900px; margin: 0 auto; padding: 0 8px 14px; font-size: .9rem; line-height: 1.55; }
@media (max-width: 760px) { .pv-hero { grid-template-columns: 1fr; padding: 16px; } .pv-hero__s { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .pv-hero__s div { min-width: 0; } }

.pv-ed__dirty { align-self: center; color: #b45309; font-weight: 800; font-size: .84rem; background: #fff3d9; border: 1px solid #f4dba6; border-radius: 999px; padding: 5px 12px; }
.pv-ed__dirty[hidden] { display: none; }
.pv-ed__bar .btn.is-pulse { box-shadow: 0 0 0 0 rgba(21,128,61,.55); animation: pvPulse 1.6s infinite; }
@keyframes pvPulse { 70% { box-shadow: 0 0 0 10px rgba(21,128,61,0); } 100% { box-shadow: 0 0 0 0 rgba(21,128,61,0); } }

/* ---------- Pie de página global: contacto y redes ---------- */
.app-footer__contact { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 10px 0 4px; }
.app-footer__contact[hidden] { display: none; }
.ft-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.ft-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid #dbe3f5; color: #334155; font-weight: 700; font-size: .8rem; text-decoration: none; box-shadow: 0 2px 6px -3px rgba(15,31,77,.25); transition: transform .15s, box-shadow .15s; }
a.ft-chip:hover { transform: translateY(-2px); box-shadow: 0 6px 14px -6px rgba(15,31,77,.4); }
.ft-chip--wa { background: #e8fbef; border-color: #a7e7c0; color: #166534; }
.ft-row--redes em { font-style: normal; font-weight: 800; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft, #64748b); margin-right: 4px; }
.ft-red { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 8px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 800; font-size: .78rem; box-shadow: 0 4px 10px -4px rgba(15,31,77,.5); transition: transform .15s, filter .15s; }
.ft-red span { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: .85rem; }
.ft-red:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.08); }
@media (max-width: 520px) { .ft-red b { display: none; } .ft-red { padding: 6px; } }
body[data-dark] .ft-chip { background: #1b2a55; border-color: #2c3f7a; color: #e8eefc; }

.ap2__redes { margin-top: 6px; display: grid; gap: 10px; }
.ap2__red { display: flex; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 14px; border: 1.5px solid #dbe3f5; background: #fbfcff; }
.ap2__red__i { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.15rem; }
.ap2__red__t { display: grid; gap: 3px; flex: 1; min-width: 0; font-size: .8rem; }
.ap2__red__t input { border: 0; background: transparent; font: inherit; font-size: .92rem; padding: 2px 0; outline: none; width: 100%; border-bottom: 1.5px solid transparent; }
.ap2__red__t input:focus { border-bottom-color: var(--violet, #1d4ed8); }

.pv-info { padding: 10px 14px; border-radius: 12px; background: #eef3ff; border: 1px solid #c9d8fb; font-size: .84rem; font-weight: 600; color: #1e3a8a; line-height: 1.45; }
.pv-redes { display: grid; gap: 8px; }
.pvb .pvc__contact { background: rgba(255,255,255,.1); }

/* ---------- Plan de ventas ▸ Contacto propio ---------- */
.pvct { display: grid; gap: 16px; }
.pvct__ban { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; color: #fff; background: radial-gradient(circle at 100% 0%, rgba(125,211,252,.35), transparent 50%), linear-gradient(135deg, #1e3a8a, #4338ca); box-shadow: 0 14px 28px -18px rgba(30,58,138,.9); }
.pvct__ban > span { font-size: 1.8rem; } .pvct__ban b { font-size: 1rem; } .pvct__ban p { margin: 4px 0 0; font-size: .84rem; line-height: 1.5; opacity: .92; }
.pvct__sec { padding: 14px 16px 16px; border-radius: 18px; background: #fff; border: 1.5px solid #dbe3f5; }
.pvct__sec h5 { margin: 0 0 12px; font-size: .98rem; } .pvct__sec h5 small { color: #64748b; font-weight: 500; margin-left: 6px; }
.pvct__grid { display: grid; gap: 10px; } .pvct__grid--r { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pvct__f { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; border: 1.5px solid #dbe3f5; background: #fbfcff; transition: border-color .15s, box-shadow .15s; cursor: text; }
.pvct__f:focus-within { border-color: #4f46e5; box-shadow: 0 0 0 4px rgba(79,70,229,.12); background: #fff; }
.pvct__i { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.3rem; box-shadow: 0 8px 14px -8px rgba(15,23,42,.6); }
.pvct__f--r .pvct__i { width: 38px; height: 38px; font-size: 1.1rem; border-radius: 12px; }
.pvct__t { display: grid; gap: 1px; flex: 1; min-width: 0; } .pvct__t b { font-size: .86rem; } .pvct__t small { color: #64748b; font-size: .72rem; }
.pvct__t input { border: 0; background: transparent; font: inherit; font-size: .98rem; padding: 3px 0; outline: none; width: 100%; }
.pvct__vac { margin: 10px 0 0; color: #64748b; font-size: .8rem; }
.pvct__acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) { .pvct__grid--r { grid-template-columns: 1fr; } }

/* ---------- Dashboard: Negocio un poco más grande y «En vivo» compacto, a la par ---------- */
.ngd { align-items: stretch; gap: 14px; }
@media (min-width: 1251px) { .ngd { grid-template-columns: minmax(0, 2.5fr) minmax(min(220px, 100%), 1fr); } }
.ngd__biz { padding: 16px 18px; display: flex; flex-direction: column; }
.ngd__h { margin-bottom: 12px; font-size: 1rem; }
.ngd__ms { gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100px, 100%), 1fr)); }
.ngd__m { gap: 9px; padding: 11px 11px; border-radius: 14px; }
.ngd__m > span { font-size: 1.35rem; }
.ngd__m b { font-size: 1.15rem; }
.ngd__m em { font-size: .74rem; }
.ngd__m i { font-size: .7rem; }
.ngd__sp { margin-top: auto; padding-top: 12px; } .ngd__sp svg { height: 40px; } .ngd__sp small { font-size: .72rem; }
.ngd__live { padding: 14px 16px; gap: 8px; justify-content: space-between; }
.ngd__live .vis-mini { gap: 8px; }
.ngd__live .vis-mini__n { gap: 10px; } .ngd__live .vis-mini__n b { font-size: 2.1rem; } .ngd__live .vis-mini__n em { font-size: .74rem; }
.ngd__live .vis-mini__c { min-height: 0; } .ngd__live .vis-mini__vacio { font-size: .8rem; }
.ngd__live .vis-mini__f { font-size: .78rem; padding-top: 8px; margin-top: 0; }
.ngd__live .vis-dot { width: 12px; height: 12px; }
.ngd__m > div { min-width: 0; } .ngd__m em, .ngd__m i { overflow-wrap: anywhere; }

/* =========================================================
   Ventas · software contable (prefijo vc-)
   ========================================================= */
.vc { display: grid; gap: 14px; }
.vc-head { margin: 0; }
.vc-per { display: grid; gap: 10px; margin-top: 4px; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, #f1f5ff, #fff); border: 1px solid #dbe5fb; }
.vc-per__tipos { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 13px; background: #e8eefb; width: fit-content; max-width: 100%; }
.vc-seg { all: unset; cursor: pointer; padding: 7px 15px; border-radius: 10px; font-weight: 800; font-size: .86rem; color: #5b6b94; }
.vc-seg.is-on { background: #fff; color: #1d4ed8; box-shadow: 0 2px 8px rgba(15,31,77,.14); }
.vc-seg:focus-visible, .vc-nav:focus-visible { outline: 2px solid #2563eb; }
.vc-per__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.vc-nav { all: unset; cursor: pointer; width: 38px; height: 38px; border-radius: 12px; background: #fff; border: 1.5px solid #cdd9f5; display: grid; place-items: center; font-size: 1.4rem; color: #1d4ed8; font-weight: 800; }
.vc-nav:hover { background: #eef3ff; }
.vc-per__lbl { display: grid; min-width: 190px; } .vc-per__lbl b { font-size: 1.1rem; color: #0f1f4d; } .vc-per__lbl small { color: #5b6b94; }
.vc-per__in { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.vc-per__in input { padding: 8px 11px; border-radius: 10px; border: 1.5px solid #cdd9f5; font: inherit; background: #fff; }
.vc-per__rap { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .82rem; color: #5b6b94; font-weight: 700; }
.vc-pane { margin: 0; display: grid; gap: 14px; align-content: start; }
.vc-help { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #eef5ff; border: 1px solid #cfe0fb; }
.vc-help > span { font-size: 1.5rem; } .vc-help b { color: #0f1f4d; } .vc-help p { margin: 2px 0 0; color: #334155; font-size: .88rem; line-height: 1.5; }
.vc-banner { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 20px 24px; border-radius: 22px; color: #fff; background: radial-gradient(circle at 100% 0%, rgba(252,209,22,.3), transparent 45%), linear-gradient(120deg, #0f1f4d, #1d4ed8 70%, #6d28d9); }
.vc-eb { font-size: .72rem; font-weight: 800; letter-spacing: .14em; opacity: .8; }
.vc-big { display: block; font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 900; line-height: 1.05; margin: 4px 0 6px; }
.vc-sub { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .9rem; opacity: .95; }
.vc-chip { padding: 3px 12px; border-radius: 999px; font-weight: 800; font-size: .8rem; } .vc-chip.up { background: #bbf7d0; color: #14532d; } .vc-chip.dn { background: #fecaca; color: #7f1d1d; }
.vc-ring { --p: 0; width: 112px; height: 112px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, #1b3a8a 72%, transparent 73%), conic-gradient(#fcd116 calc(var(--p) * 1%), rgba(255,255,255,.22) 0); }
.vc-ring span { font-size: 1.5rem; font-weight: 900; } .vc-ring small { font-size: .62rem; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }
.vc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(156px, 1fr)); gap: 10px; }
.vc-kpis--4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.vc-kpi { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border-radius: 16px; background: linear-gradient(135deg, var(--s), #fff 85%); border: 1px solid var(--b); }
.vc-kpi > span { flex: none; width: 42px; height: 42px; display: grid; place-items: center; font-size: 1.3rem; border-radius: 13px; background: #fff; box-shadow: 0 1px 5px rgba(15,31,77,.12); }
.vc-kpi > div { display: grid; line-height: 1.15; min-width: 0; } .vc-kpi b { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--c); font-weight: 800; white-space: nowrap; } .vc-kpi em { font-style: normal; font-weight: 700; font-size: .84rem; color: #0f1f4d; } .vc-kpi small { color: #5b6b94; font-size: .76rem; }
.vc-alerts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.vc-al { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 11px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #f6f8fd; border: 1.5px solid #e3e9f7; }
.vc-al:hover { border-color: #93a8e6; } .vc-al > span { font-size: 1.4rem; } .vc-al div { display: grid; } .vc-al b { color: #0f1f4d; font-size: .92rem; } .vc-al small { color: #5b6b94; }
.vc-al.is-amb { background: #fff8e8; border-color: #f4dba6; } .vc-al.is-red { background: #fff1f1; border-color: #f6c3c3; }
.vc-box { background: #fff; border: 1px solid #e3e9f7; border-radius: 16px; padding: 14px 16px; }
.vc-box h4 { margin: 0 0 10px; color: #0f1f4d; } .vc-h2 { margin-top: 16px !important; }
.vc-box__h { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 8px; } .vc-box__h h4 { margin: 0; }
.vc-chart__sc { overflow-x: auto; } .vc-chart svg { width: 100%; height: auto; display: block; }
.vc-leg { display: flex; gap: 16px; font-size: .82rem; color: #475569; margin-top: 6px; } .vc-leg i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; } .vc-leg .f { background: #2563eb; } .vc-leg .r { background: #10b981; }
.vc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vc-er-t { display: grid; gap: 4px; } .vc-er { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: .9rem; background: #f6f8fd; }
.vc-er.neg b { color: #b91c1c; } .vc-er.tot { background: #e8efff; font-weight: 800; color: #1d4ed8; } .vc-er.sub { background: transparent; color: #64748b; font-size: .84rem; } .vc-er.ok { background: #e9f8ee; color: #14532d; } .vc-er.warn { background: #fff8e8; color: #92400e; }
.vc-hb { display: grid; gap: 8px; } .vc-hb__r { display: grid; grid-template-columns: minmax(80px, 1.1fr) 2fr auto 40px; gap: 8px; align-items: center; font-size: .86rem; } .vc-hb__r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-hb__t { height: 10px; border-radius: 99px; background: #e8edf8; overflow: hidden; } .vc-hb__t i { display: block; height: 100%; border-radius: 99px; } .vc-hb__r small { color: #5b6b94; text-align: right; }
.vc-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #f6f8fd; border: 1px solid #e3e9f7; }
.vc-bar input[type=search] { flex: 1 1 220px; } .vc-bar input, .vc-bar select { padding: 8px 11px; border-radius: 10px; border: 1.5px solid #dbe3f5; font: inherit; background: #fff; min-width: 0; }
.vc-cnt { margin: 0 0 6px; color: #5b6b94; font-size: .84rem; }
.vc-scroll { overflow-x: auto; border: 1px solid #e3e9f7; border-radius: 14px; }
.vc-t { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 780px; }
.vc-t th { text-align: left; background: #f3f6ff; color: #0f1f4d; padding: 9px 10px; border-bottom: 2px solid #d5e0fb; white-space: nowrap; position: sticky; top: 0; }
.vc-t td { padding: 9px 10px; border-bottom: 1px solid #eef1f8; vertical-align: top; } .vc-t td small { display: block; color: #5b6b94; font-size: .76rem; }
.vc-t .n { text-align: right; white-space: nowrap; } .vc-t .mono { font-family: ui-monospace, Menlo, monospace; color: #475569; font-size: .8rem; } .vc-t .is-deuda { color: #b45309; }
.vc-t tr.is-anulada td { opacity: .5; text-decoration: line-through; } .vc-t tr.is-anulada td.vc-act { text-decoration: none; }
.vc-t tfoot td { background: #f3f6ff; font-weight: 700; border-top: 2px solid #d5e0fb; }
.vc-t--s { min-width: 0; margin-bottom: 10px; }
.vc-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 800; background: var(--s); color: var(--c); border: 1px solid var(--b); white-space: nowrap; }
.vc-act { white-space: nowrap; } .vc-ico { all: unset; cursor: pointer; padding: 4px 6px; border-radius: 8px; } .vc-ico:hover { background: #eef3ff; }
.vc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vc-warn { margin: 0; padding: 9px 12px; border-radius: 12px; background: #fff8e8; border: 1px solid #f4dba6; color: #92400e; font-size: .88rem; }
.vc-okmsg { margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: #e9f8ee; color: #14532d; font-weight: 700; }
.vc-form { padding: 16px; border-radius: 18px; background: #f6f8fd; border: 1.5px solid #cdd9f5; display: grid; gap: 12px; }
.vc-form__h { display: flex; gap: 12px; align-items: center; } .vc-form__h > span { font-size: 1.6rem; } .vc-form__h h4 { margin: 0; color: #0f1f4d; } .vc-form__h p { margin: 2px 0 0; color: #5b6b94; font-size: .86rem; }
.vc-form fieldset { border: 1px solid #dbe3f5; border-radius: 14px; padding: 10px 12px 12px; margin: 0; background: #fff; } .vc-form legend { font-weight: 800; color: #1d4ed8; padding: 0 6px; font-size: .86rem; }
.vc-fg { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.vc-fg label, .vc-notas { display: grid; gap: 4px; font-size: .78rem; font-weight: 700; color: #334155; }
.vc-fg .w2 { grid-column: span 2; } .vc-fg input, .vc-fg select, .vc-notas input { padding: 9px 11px; border-radius: 10px; border: 1.5px solid #dbe3f5; font: inherit; font-weight: 500; background: #fff; width: 100%; box-sizing: border-box; }
.vc-ro { background: #eef3ff !important; font-weight: 800 !important; color: #1d4ed8; }
.vc-fg--pago { align-items: end; } .vc-fg--p { margin-top: 10px; }
.vc-radios { display: flex; flex-wrap: wrap; gap: 8px; } .vc-radios label { display: flex; align-items: center; gap: 6px; padding: 8px 13px; border: 1.5px solid #dbe3f5; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: .88rem; background: #fff; }
.vc-radios label:has(input:checked) { border-color: #1d4ed8; background: #eef3ff; color: #1d4ed8; }
.vc-reps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.vc-rep { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; padding: 13px; border: 1.5px solid #dbe3f5; border-radius: 15px; background: #fff; }
.vc-rep:hover { border-color: #93a8e6; } .vc-rep.is-on { border-color: #1d4ed8; background: linear-gradient(135deg, #eef3ff, #fff); box-shadow: 0 3px 12px rgba(29,78,216,.14); }
.vc-rep > span { flex: none; width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.3rem; border-radius: 12px; background: #e8efff; } .vc-rep div { display: grid; gap: 2px; } .vc-rep b { color: #0f1f4d; } .vc-rep small { color: #5b6b94; line-height: 1.35; }
.vc-repcfg { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 12px 14px; border-radius: 14px; background: #f6f8fd; border: 1px solid #e3e9f7; }
.vc-repcfg__p { display: grid; min-width: 220px; } .vc-repcfg__p small { color: #5b6b94; font-weight: 700; letter-spacing: .05em; } .vc-repcfg__p b { color: #0f1f4d; }
.vc-repcfg label { display: grid; gap: 3px; font-size: .78rem; font-weight: 700; color: #334155; } .vc-repcfg select { padding: 8px 10px; border-radius: 10px; border: 1.5px solid #dbe3f5; font: inherit; background: #fff; }
.vc-prev { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; } .vc-prev > div { display: grid; padding: 10px 12px; border-radius: 12px; background: #eef5ff; border: 1px solid #cfe0fb; } .vc-prev b { color: #1d4ed8; font-size: 1.15rem; } .vc-prev span { font-size: .76rem; color: #5b6b94; font-weight: 700; }
.vc-prevsecs { display: flex; flex-wrap: wrap; gap: 6px; } .vc-repbtn { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .vc-cols { grid-template-columns: 1fr; } .vc-fg .w2 { grid-column: auto; } .vc-per__in { margin-left: 0; } .vc-banner { padding: 16px; } }

/* =========================================================
   Semáforo de cuentas por vencer (sv-)
   ========================================================= */
.vc-h3 { margin: 6px 0 0; color: #0f1f4d; }
.sv-host { margin: 0 0 14px; }
.sv-card { background: #fff; border: 1px solid #e3e9f7; border-radius: 20px; padding: 16px 18px; box-shadow: 0 6px 22px rgba(15,31,77,.06); display: grid; gap: 12px; }
.sv-card--flat { box-shadow: none; border-radius: 16px; background: #fafbff; }
.sv-h { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.sv-h > div { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; } .sv-h b { font-size: 1.05rem; color: #0f1f4d; } .sv-h small { color: #5b6b94; line-height: 1.4; }
.sv-vencida { background: #7f1d1d; } .sv-critica { background: #dc2626; } .sv-proxima { background: #f59e0b; } .sv-atencion { background: #facc15; } .sv-vigente { background: #16a34a; }
.sv-stack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: #e8edf8; } .sv-stack i { display: block; height: 100%; }
.sv-leg { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: #475569; } .sv-leg li { display: flex; align-items: center; gap: 6px; } .sv-leg i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; } .sv-leg b { color: #0f1f4d; }
.sv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sv-row { display: grid; grid-template-columns: 24px 14px 38px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 14px; background: #f6f8fd; border: 1px solid #e3e9f7; border-left-width: 5px; }
.sv-r-vencida { border-left-color: #7f1d1d; background: #fff5f5; } .sv-r-critica { border-left-color: #dc2626; background: #fff7f7; } .sv-r-proxima { border-left-color: #f59e0b; background: #fffaf0; } .sv-r-atencion { border-left-color: #facc15; } .sv-r-vigente { border-left-color: #16a34a; }
.sv-rank { font-weight: 900; color: #94a3b8; text-align: center; font-size: .9rem; }
.sv-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 0 4px rgba(15,31,77,.12); }
.sv-av { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #fff; border: 1px solid #e3e9f7; font-size: 1.2rem; }
.sv-who { display: grid; min-width: 0; line-height: 1.25; } .sv-who b { color: #0f1f4d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sv-who small { color: #5b6b94; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-vinc { color: #6d28d9 !important; }
.sv-when { display: grid; justify-items: end; gap: 3px; text-align: right; font-size: .84rem; color: #0f1f4d; }
.sv-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; color: #fff; white-space: nowrap; } .sv-chip.sv-atencion { color: #713f12; }
.sv-nota { margin: 0; font-size: .8rem; color: #5b6b94; }
.sv-vacio { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 18px 8px; } .sv-vacio span { font-size: 2rem; } .sv-vacio b { color: #0f1f4d; } .sv-vacio small { color: #5b6b94; max-width: 46ch; }
.sv-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .sv-sep { width: 1px; height: 22px; background: #d5deee; margin: 0 4px; }
.sv-chips .ax-fchip.is-on { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.vc-t td .sv-vinc { display: block; }
.rn-modal { width: min(480px, 100%); background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.4); }
.rn-h { display: flex; gap: 12px; align-items: center; padding: 16px 18px; color: #fff; background: linear-gradient(120deg, #166534, #15803d 70%, #0f766e); } .rn-h > span { font-size: 2rem; } .rn-h small { opacity: .85; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; font-size: .7rem; } .rn-h h3 { margin: 1px 0; color: #fff; } .rn-h p { margin: 0; opacity: .9; font-size: .84rem; }
.rn-b { padding: 16px 18px; display: grid; gap: 10px; } .rn-lbl { margin: 0; color: #334155; } .rn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rn-f { display: grid; gap: 4px; font-weight: 700; font-size: .84rem; color: #334155; } .rn-f input { padding: 9px 11px; border-radius: 10px; border: 1.5px solid #dbe3f5; font: inherit; }
.rn-nota { margin: 0; padding: 9px 12px; border-radius: 12px; background: #eef5ff; border: 1px solid #cfe0fb; color: #1e3a8a; font-size: .84rem; } .rn-ck { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: .9rem; color: #0f1f4d; }
.rn-f2 { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 18px 16px; border-top: 1px solid #eef1f8; }
@media (max-width: 640px) { .sv-row { grid-template-columns: 22px 38px minmax(0, 1fr) auto; } .sv-dot, .sv-row > .btn { display: none; } .sv-when { grid-column: 3 / -1; justify-items: start; text-align: left; } }

/* ---- Ventas en páginas (subítems del menú) ---- */
.vc { display: grid; gap: 14px; align-content: start; }
.vc-top { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; align-items: center; }
.vc-top__t h3 { margin: 0; color: #0f1f4d; font-size: 1.25rem; } .vc-top__t p { margin: 3px 0 0; color: #5b6b94; font-size: .9rem; max-width: 62ch; line-height: 1.45; }
.vc-top__a { display: flex; flex-wrap: wrap; gap: 8px; }
.vc-body { display: grid; gap: 14px; align-content: start; min-width: 0; }
.vc-page { padding: 18px; }
.vc > .vc-per { margin-top: 0; }
.vc-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 10px; }
.vc-qk { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, #f1f5ff, #fff); border: 1.5px solid #dbe5fb; transition: border-color .15s, transform .15s, box-shadow .15s; }
.vc-qk:hover { border-color: #6b8ff0; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(29,78,216,.12); } .vc-qk:focus-visible { outline: 2px solid #2563eb; }
.vc-qk > span { flex: none; width: 42px; height: 42px; display: grid; place-items: center; font-size: 1.3rem; border-radius: 13px; background: #e5edff; } .vc-qk div { flex: 1; display: grid; min-width: 0; } .vc-qk b { color: #0f1f4d; } .vc-qk small { color: #5b6b94; } .vc-qk > i { font-style: normal; color: #1d4ed8; font-weight: 900; font-size: 1.3rem; }
.vc-link { all: unset; cursor: pointer; color: #1d4ed8; font-weight: 800; font-size: .84rem; } .vc-link:hover { text-decoration: underline; }
.vc-prox { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.vc-prox li { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 8px; align-items: center; font-size: .88rem; } .vc-prox small { color: #5b6b94; } .vc-prox b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #0f1f4d; }
/* menú lateral: subítems de Ventas */
.adm--admin .adm-nav__item.adm-nav__sub { margin-left: 22px; padding: 5px 10px; font-size: .84rem; min-height: 0; position: relative; opacity: .95; }
.adm--admin .adm-nav__item.adm-nav__sub::before { content: ""; position: absolute; left: -12px; top: 0; bottom: 50%; width: 9px; border-left: 2px solid rgba(255,255,255,.22); border-bottom: 2px solid rgba(255,255,255,.22); border-radius: 0 0 0 7px; }
.adm--admin .adm-nav__item.adm-nav__sub .adm-nav__ico { width: 24px; height: 24px; font-size: .85rem; border-radius: 8px; }

/* ---- Ventas: barra única (período + botones en una sola línea) ---- */
.vc-bar1 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0; }
.vc-bar1 > .vc-per { flex: 1 1 auto; min-width: 0; }
.vc > .vc-per, .vc-bar1 .vc-per { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 6px 10px; margin: 0; border-radius: 14px; background: #f3f6ff; border: 1px solid #dbe5fb; }
.vc-per__tipos { padding: 3px; border-radius: 11px; flex: none; }
.vc-seg { padding: 5px 11px; font-size: .8rem; border-radius: 8px; }
.vc-per__nav { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.vc-nav { width: 30px; height: 30px; border-radius: 9px; font-size: 1.1rem; }
.vc-per__lbl { min-width: 0; line-height: 1.15; } .vc-per__lbl b { font-size: .95rem; white-space: nowrap; } .vc-per__lbl small { font-size: .7rem; white-space: nowrap; }
.vc-per__in { margin-left: 0; } .vc-per__in input { padding: 5px 8px; font-size: .84rem; border-radius: 9px; max-width: 150px; }
.vc-per__rap { display: flex; align-items: center; gap: 4px; margin: 0; font-size: .82rem; }
.vc-per__rap select { padding: 5px 8px; border-radius: 9px; border: 1.5px solid #cdd9f5; font: inherit; font-size: .82rem; background: #fff; color: #1d4ed8; font-weight: 700; }
.vc-bar1 .vc-top__a { margin-left: auto; flex: none; flex-wrap: nowrap; }
.vc-bar1 .btn { padding: 8px 14px; font-size: .86rem; white-space: nowrap; }
.vc, .vc-body { gap: 10px; }
@media (max-width: 900px) { .vc-bar1 .vc-top__a { margin-left: 0; width: 100%; } .vc-bar1 .vc-top__a .btn { flex: 1; } }
/* menú lateral: submenú plegable de Ventas */
.adm--admin .adm-nav__subs { display: flex; flex-direction: column; gap: 2px; margin: 0 0 2px; animation: navAbre .16s ease-out; }
.adm--admin .adm-nav__subs[hidden] { display: none; }
.adm--admin .adm-nav__chev { margin-left: auto; font-size: .8rem; opacity: .7; transition: transform .18s; }
.adm--admin .adm-nav__item[aria-expanded="true"] .adm-nav__chev { transform: rotate(90deg); opacity: 1; }
/* barra única adaptable: botones de tipo (ancho) → lista (angosto); botones sin texto en pantallas cortas */
.vc-bar1 { container: vcb / inline-size; }
.vc-per__sel { display: none; padding: 5px 8px; border-radius: 9px; border: 1.5px solid #cdd9f5; background: #fff; font: inherit; font-size: .84rem; font-weight: 800; color: #1d4ed8; }
@container vcb (max-width: 1240px) { .vc-per__tipos { display: none; } .vc-per__sel { display: inline-block; } }
@container vcb (max-width: 860px) { .vc-bar1 .vc-top__a .btn .t { display: none; } .vc-bar1 .vc-top__a .btn { padding: 8px 11px; } .vc-per__lbl small { display: none; } .vc-per__in input { max-width: 132px; } }
@container vcb (max-width: 600px) { .vc-per { gap: 6px 8px; } }

/* ===== Dashboard estadístico de Ventas (vd- / vg-) ===== */
.vc-leg i.a { background: repeating-linear-gradient(90deg, #94a3b8 0 4px, transparent 4px 7px); height: 3px; border-radius: 2px; }
.vd-hero__g { display: flex; align-items: center; gap: 14px; }
.vd-hero__t { display: grid; gap: 2px; line-height: 1.25; } .vd-hero__t b { font-size: 1.1rem; } .vd-hero__t small { opacity: .85; font-size: .78rem; } .vd-lk { color: #fcd116 !important; }
.vd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(166px, 1fr)); gap: 12px; }
.vd-k { --c: #2563eb; background: #fff; border: 1px solid #e3e9f7; border-top: 4px solid var(--c); border-radius: 16px; padding: 12px 14px 10px; display: grid; gap: 2px; box-shadow: 0 1px 6px rgba(15,31,77,.05); min-width: 0; }
.vd-k--azul { --c: #2563eb; } .vd-k--verde { --c: #10b981; } .vd-k--ambar { --c: #f59e0b; } .vd-k--violeta { --c: #7c3aed; } .vd-k--teal { --c: #0891b2; } .vd-k--gris { --c: #64748b; }
.vd-k__h { display: flex; align-items: center; gap: 6px; } .vd-k__h span { font-size: 1.05rem; } .vd-k__h em { font-style: normal; font-size: .78rem; font-weight: 700; color: #5b6b94; text-transform: uppercase; letter-spacing: .04em; flex: 1; }
.vd-k b { font-size: clamp(1.15rem, 2vw, 1.45rem); color: #0f1f4d; font-weight: 800; white-space: nowrap; } .vd-k small { color: #64748b; font-size: .76rem; }
.vd-d { font-style: normal; font-size: .72rem; font-weight: 800; padding: 2px 7px; border-radius: 99px; } .vd-d.up { background: #d1fae5; color: #047857; } .vd-d.dn { background: #fee2e2; color: #b91c1c; }
.vg-spark { width: 100%; height: 30px; margin-top: 4px; display: block; }
.vd-bar { height: 7px; border-radius: 9px; background: #fef3c7; margin-top: 10px; overflow: hidden; } .vd-bar i { display: block; height: 100%; background: #f59e0b; border-radius: 9px; } .vd-bar--v { background: #ede9fe; } .vd-bar--v i { background: #7c3aed; }
.vd-box { background: #fff; border: 1px solid #e3e9f7; border-radius: 18px; padding: 14px 16px; box-shadow: 0 1px 6px rgba(15,31,77,.04); min-width: 0; }
.vd-box__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; } .vd-box__h h4 { margin: 0; color: #0f1f4d; font-size: .98rem; }
.vd-note { margin: 0 0 6px; font-size: .84rem; color: #475569; } .vd-rojo { color: #dc2626; } .vd-verde { color: #059669; } .vd-amb { color: #d97706; }
.vd-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .vd-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.vd-ins { background: linear-gradient(135deg, #f4f8ff, #fff 70%); }
.vd-ins ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 8px; }
.vd-in { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 12px; border: 1px solid #e3e9f7; background: #fff; border-left: 4px solid #2563eb; }
.vd-in span { font-size: 1.15rem; } .vd-in p { margin: 0; font-size: .85rem; color: #334155; line-height: 1.4; } .vd-in b { color: #0f1f4d; }
.vd-in--verde { border-left-color: #10b981; } .vd-in--rojo { border-left-color: #ef4444; } .vd-in--ambar { border-left-color: #f59e0b; } .vd-in--gris { border-left-color: #94a3b8; }
.vg-svg { width: 100%; height: auto; display: block; } .vg-svg--c { max-height: 190px; }
.vg-donut { display: grid; grid-template-columns: 128px 1fr; gap: 12px; align-items: center; } .vg-donut svg { width: 100%; height: auto; }
.vg-leg { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: .8rem; min-width: 0; }
.vg-leg li { display: grid; grid-template-columns: 10px 1fr auto 34px; gap: 6px; align-items: center; } .vg-leg i { width: 10px; height: 10px; border-radius: 3px; } .vg-leg span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #475569; } .vg-leg b { color: #0f1f4d; } .vg-leg em { font-style: normal; color: #64748b; text-align: right; }
.vg-vacio { color: #64748b; font-size: .85rem; margin: 0; }
.vg-gauge { text-align: center; } .vg-gauge svg { width: 100%; max-width: 170px; height: auto; }
.vd-cob { display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: center; } .vd-cobl { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.vd-cobl li { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; border-bottom: 1px dashed #e3e9f7; padding-bottom: 5px; } .vd-cobl span { color: #64748b; } .vd-cobl b { color: #0f1f4d; white-space: nowrap; }
.vg-tip { position: fixed; z-index: 99999; pointer-events: none; background: #0f1f4d; color: #fff; padding: 8px 11px; border-radius: 10px; font-size: .78rem; line-height: 1.45; box-shadow: 0 8px 24px rgba(15,31,77,.35); max-width: 260px; }
.vg-tip[hidden] { display: none; }
[data-tip] { cursor: default; } rect[data-tip]:hover { fill: rgba(37,99,235,.07); }
@media (max-width: 1100px) { .vd-grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .vd-grid2, .vd-grid3 { grid-template-columns: 1fr; } .vd-cob { grid-template-columns: 1fr; } .vg-donut { grid-template-columns: 110px 1fr; } .vd-hero__g { width: 100%; justify-content: space-between; } }

/* ===== Vencimientos: filtro por ubicación, grado y estudiante ===== */
.sv-flt { margin: 0 0 12px; }
.sv-flt .rf { box-shadow: 0 4px 16px rgba(15,31,77,.07); }
.sv-sub { display: block; font-size: .76rem; color: #64748b; font-weight: 500; margin-top: 1px; }
.sv-vacio-f { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 28px 12px; background: #fff; border: 1px dashed #cbd5e1; border-radius: 14px; margin: 10px 0; }
.sv-vacio-f span { font-size: 1.8rem; }
.sv-vacio-f b { color: #0f1f4d; }
.sv-vacio-f small { color: #64748b; }
