/* PediGo · páginas de la plataforma (registro y súper administrador)
   Identidad: Azul PediGo #304D70 + Crema #F5E7CE, DejaVu Sans, diseño plano, radios de 12 px */
@font-face { font-family: 'DejaVu Sans'; font-weight: 400; font-display: swap; src: url('https://cdn.jsdelivr.net/npm/dejavu-fonts-ttf@2.37.3/ttf/DejaVuSans.ttf') format('truetype'); }
@font-face { font-family: 'DejaVu Sans'; font-weight: 700; font-display: swap; src: url('https://cdn.jsdelivr.net/npm/dejavu-fonts-ttf@2.37.3/ttf/DejaVuSans-Bold.ttf') format('truetype'); }
:root {
  --navy: #304D70; --navy-deep: #263E5A; --navy-ink: #1A2B40; --crema: #F5E7CE; --sky: #5A86B8;
  --bg: #F7F3EA; --card: #fff; --ink: #1A2B40; --muted: #5F6B7A; --line: rgba(48, 77, 112, .14);
  --ok: #2E9D5B; --warn: #C98A12; --danger: #D64545; --r: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'DejaVu Sans', system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.45; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 18px; border-radius: var(--r); font-weight: 700; font-size: .92rem; white-space: nowrap; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--navy); color: var(--crema); }
.btn--primary:hover { background: var(--navy-deep); }
.btn--ghost { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--navy); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--danger { background: #fff; color: var(--danger); box-shadow: inset 0 0 0 1.5px rgba(214, 69, 69, .35); }
.btn--sm { padding: 7px 11px; font-size: .8rem; border-radius: 10px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: .85rem; font-weight: 700; }
.field small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.in, .field input, .field select {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r); border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); outline: none; font-size: .98rem; font-weight: 400;
}
.in:focus, .field input:focus, .field select:focus { box-shadow: inset 0 0 0 2px var(--navy); }
.field .err { color: var(--danger); font-weight: 700; font-size: .78rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgba(48, 77, 112, .08); color: var(--navy); white-space: nowrap; }
.tag--ok { background: rgba(46, 157, 91, .12); color: var(--ok); }
.tag--warn { background: rgba(201, 138, 18, .14); color: #8A5D00; }
.tag--bad { background: rgba(214, 69, 69, .12); color: var(--danger); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: var(--r); background: var(--navy-ink); color: #fff; font-weight: 700; font-size: .88rem; transition: .25s; z-index: 50; max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- registro (asistente de alta) ---------- */
.reg { min-height: 100svh; display: grid; grid-template-columns: minmax(280px, 400px) 1fr; }
.reg__aside { background: var(--navy); color: var(--crema); padding: 36px 32px; display: flex; flex-direction: column; gap: 28px; }
.reg__aside img { width: 190px; height: auto; }
.reg__aside h1 { font-size: 1.6rem; line-height: 1.2; }
.reg__aside p { margin: 0; color: rgba(245, 231, 206, .8); }
.reg__pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.reg__pasos li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); font-weight: 700; font-size: .9rem; color: rgba(245, 231, 206, .55); }
.reg__pasos li b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; box-shadow: inset 0 0 0 1.5px currentColor; flex: none; }
.reg__pasos li.is-on { background: rgba(245, 231, 206, .1); color: var(--crema); }
.reg__pasos li.is-hecho { color: rgba(245, 231, 206, .85); }
.reg__pasos li.is-hecho b { background: var(--crema); color: var(--navy); box-shadow: none; }
.reg__ya { margin-top: auto; font-size: .88rem; }
.reg__ya a { color: var(--crema); font-weight: 700; }
.reg__main { padding: 40px 28px 60px; display: flex; justify-content: center; }
.reg__form { width: min(100%, 640px); }
.reg__form h2 { font-size: 1.5rem; margin-bottom: 4px; color: var(--navy); }
.reg__form > p.lead { margin: 0 0 24px; color: var(--muted); }
.reg__nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 26px; }
.reg__nav .btn--primary { min-width: 160px; height: 48px; }
@media (max-width: 820px) {
  .reg { grid-template-columns: 1fr; }
  .reg__aside { padding: 20px 16px; gap: 14px; }
  .reg__aside img { width: 140px; }
  .reg__aside h1, .reg__aside > p, .reg__ya { display: none; }
  .reg__pasos { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .reg__pasos li { justify-content: center; padding: 6px; }
  .reg__pasos li span { display: none; }
  .reg__main { padding: 24px 16px 48px; }
}

.rubros { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin-bottom: 18px; }
.rubro { padding: 14px 10px; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); text-align: center; font-weight: 700; font-size: .85rem; display: grid; gap: 4px; }
.rubro i { font-style: normal; font-size: 1.8rem; }
.rubro:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.rubro.is-on { background: var(--navy); color: var(--crema); box-shadow: none; }
.link-tienda { display: flex; align-items: center; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; }
.link-tienda:focus-within { box-shadow: inset 0 0 0 2px var(--navy); }
.link-tienda span { padding: 0 4px 0 14px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.link-tienda input { box-shadow: none !important; padding-left: 0; }

.marca { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 620px) { .marca { grid-template-columns: 1fr; } }
.drop { display: grid; place-items: center; gap: 6px; min-height: 150px; padding: 16px; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 2px var(--line); text-align: center; cursor: pointer; font-weight: 400; }
.drop:hover, .drop.is-over { box-shadow: inset 0 0 0 2px var(--navy); }
.drop img { max-width: 140px; max-height: 110px; object-fit: contain; }
.drop b { color: var(--navy); }
.colores { display: flex; flex-wrap: wrap; gap: 10px; }
.color { width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 3px #fff, 0 0 0 1.5px var(--line); }
.color.is-on { box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px var(--navy); }
.color--custom { position: relative; overflow: hidden; background: conic-gradient(#e74c3c, #f1c40f, #2ecc71, #3498db, #9b59b6, #e74c3c); }
.color--custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.preview { border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px -18px rgba(26, 43, 64, .5); background: #fff; }
.preview__top { padding: 18px 16px 22px; color: #fff; display: grid; gap: 10px; justify-items: center; text-align: center; }
.preview__top img { max-width: 110px; max-height: 60px; object-fit: contain; }
.preview__top b { font-size: 1.15rem; line-height: 1.2; white-space: pre-line; }
.preview__nombre { font-weight: 700; font-size: 1.05rem; }
.preview__btn { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .8rem; }
.preview__body { padding: 12px 16px 16px; display: grid; gap: 8px; }
.preview__item { display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; }
.preview__item i { font-style: normal; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem; }

.planes-reg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .planes-reg { grid-template-columns: 1fr; } }
.plan { position: relative; padding: 20px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; display: grid; gap: 4px; align-content: start; }
.plan:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.plan.is-on { box-shadow: inset 0 0 0 3px var(--navy); }
.plan h3 { color: var(--navy); font-size: 1.15rem; }
.plan__precio { font-size: 1.35rem; font-weight: 700; }
.plan__precio small { font-size: .78rem; color: var(--muted); font-weight: 400; }
.plan ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .82rem; }
.plan li::before { content: '✓ '; color: var(--ok); font-weight: 700; }
.plan li.no { color: var(--muted); }
.plan li.no::before { content: '— '; color: var(--muted); }
.plan__badge { position: absolute; top: -10px; right: 12px; padding: 3px 10px; border-radius: 999px; background: var(--crema); color: var(--navy); font-size: .72rem; font-weight: 700; }
.nota { margin-top: 16px; padding: 12px 14px; border-radius: var(--r); background: var(--crema); color: var(--navy); font-size: .88rem; }

.resumen { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 18px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); margin-bottom: 16px; }
.resumen span { color: var(--muted); }
.resumen b { text-align: right; }
.resumen .total { padding-top: 10px; border-top: 1.5px solid var(--line); font-size: 1.15rem; color: var(--navy); }
.resumen a { grid-column: 1 / -1; font-size: .82rem; color: var(--navy); font-weight: 700; }
.pagos-op { display: grid; gap: 10px; }
.pago-op { display: grid; gap: 4px; text-align: left; padding: 16px; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.pago-op span { color: var(--muted); font-size: .85rem; }
.pago-op.is-on { box-shadow: inset 0 0 0 3px var(--navy); }
.procesando { position: fixed; inset: 0; background: rgba(26, 43, 64, .6); display: grid; place-items: center; z-index: 60; padding: 16px; }
.procesando > div { background: #fff; border-radius: 16px; padding: 28px; display: grid; gap: 8px; justify-items: center; text-align: center; max-width: 320px; }
.procesando small { color: var(--muted); }
.spin { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--navy); animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.listo { text-align: center; }
.listo__ico { font-size: 3rem; }
.listo__link { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 18px 0; padding: 14px; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; color: var(--navy); word-break: break-all; }
.listo__acciones { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.listo__pasos { text-align: left; margin: 28px auto 0; max-width: 460px; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }

/* ---------- súper administrador ---------- */
.adm-login { min-height: 100svh; display: grid; place-items: center; padding: 20px; background: var(--navy); }
.adm-login form { width: min(100%, 400px); background: var(--navy-deep); border-radius: 16px; padding: 30px 26px; color: var(--crema); display: grid; gap: 4px; }
.adm-login img { width: 200px; margin: 0 auto 12px; display: block; }
.adm-login h1 { font-size: 1.35rem; text-align: center; }
.adm-login p { margin: 0 0 14px; text-align: center; color: rgba(245, 231, 206, .78); font-size: .88rem; }
.adm-login .field { color: var(--crema); }
.adm-login .btn { height: 48px; background: var(--crema); color: var(--navy); margin-top: 4px; }
.adm-login .err { color: #ffb3b3; text-align: center; font-weight: 700; font-size: .85rem; margin-top: 8px; }
.adm-top { background: var(--navy); color: var(--crema); padding: 14px 24px; display: flex; align-items: center; gap: 16px; }
.adm-top img { width: 130px; height: auto; }
.adm-top span { font-size: .82rem; opacity: .8; }
.adm-top .sp { flex: 1; }
.adm-top button, .adm-top a { color: var(--crema); font-weight: 700; font-size: .85rem; text-decoration: none; }
.adm { max-width: 1180px; margin: 0 auto; padding: 24px 20px 60px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border-radius: var(--r); padding: 16px; box-shadow: inset 0 0 0 1.5px var(--line); }
.kpi span { display: block; font-size: .78rem; color: var(--muted); font-weight: 700; }
.kpi b { font-size: 1.45rem; color: var(--navy); }
.kpi small { display: block; color: var(--muted); font-size: .75rem; margin-top: 2px; }
.card { background: #fff; border-radius: 16px; padding: 18px; box-shadow: inset 0 0 0 1.5px var(--line); }
.card h2 { font-size: 1.1rem; color: var(--navy); }
.barra { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.barra .in { height: 40px; max-width: 260px; }
.barra select.in { width: auto; }
.tabla-wrap { overflow-x: auto; }
.tabla { width: 100%; min-width: 820px; border-collapse: collapse; font-size: .85rem; }
.tabla th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1.5px solid var(--line); }
.tabla td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabla td b { color: var(--navy); }
.tabla td .sub { display: block; color: var(--muted); font-size: .76rem; }
.tabla select { height: 34px; border-radius: 9px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); padding: 0 8px; background: #fff; }
.acciones { display: flex; gap: 6px; flex-wrap: wrap; }
.vacio { padding: 30px; text-align: center; color: var(--muted); }
.adm-tabs { display: flex; gap: 4px; margin-left: 12px; overflow-x: auto; }
.adm-top .adm-tabs a { padding: 8px 12px; border-radius: 10px; color: rgba(245, 231, 206, .8); white-space: nowrap; }
.adm-top .adm-tabs a.is-on { background: var(--crema); color: var(--navy); }
@media (max-width: 760px) {
  .adm-top { flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
  .adm-tabs { order: 5; width: 100%; margin: 0; }
  .adm { padding: 18px 12px 48px; }
}
.adm h1 { font-size: 1.5rem; color: var(--navy); margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.card + .card, .grid-2 + .card, .card + .grid-2 { margin-top: 16px; }
.lista-simple { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.lista-simple li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.lista-simple li:last-child { border-bottom: 0; }
.lista-simple .sub { display: block; color: var(--muted); font-size: .76rem; }
.lista-simple b { color: var(--navy); }
.monto { font-weight: 700; white-space: nowrap; }
.monto--debe { color: var(--danger); }
.linkbtn { color: var(--navy); font-weight: 700; text-decoration: underline; padding: 0; font-size: inherit; }
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; }
.modal__fondo { position: absolute; inset: 0; background: rgba(26, 43, 64, .55); }
.modal__caja { position: relative; width: min(100%, 760px); max-height: calc(100svh - 32px); overflow: auto; background: var(--bg); border-radius: 18px; padding: 24px; }
.modal__x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: #fff; font-size: 1rem; }
.ficha__cab { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; padding-right: 40px; flex-wrap: wrap; }
.ficha__cab h2 { font-size: 1.35rem; color: var(--navy); }
.ficha__cab .sub { color: var(--muted); font-size: .85rem; }
.datos-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: .88rem; }
.datos-dl dt { color: var(--muted); }
.datos-dl dd { margin: 0; font-weight: 700; word-break: break-word; }
.form-linea { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.form-linea .field { margin: 0; flex: 1; min-width: 120px; }
.form-linea .field input, .form-linea .field select { height: 40px; }
textarea.in { height: auto; min-height: 70px; padding: 10px 14px; resize: vertical; }
