/* ---------- Panel: complementos al estilo de Cotiza ---------- */
:root { --pri: #13294b; --pri-ink: #ffffff; }
.login .lg .b-ico.big { width: 72px; height: 72px; border-radius: 18px; background: #fff; display: grid; place-items: center; margin: 0 auto 6px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.login .lg .b-ico.big img { width: 58px; height: 58px; max-width: none; max-height: none; }
.err { color: #b42318; font-size: 13px; min-height: 0; }
.nav .sep { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .55; padding: 14px 12px 4px; }
.chip { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--pri-soft, #eef2f8); color: var(--ink-2); margin: 1px 4px 1px 0; }
.pl-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lbl-s { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.perf { padding: 14px 16px; }
.perf h3 { margin: 0 0 10px; font-size: 15px; }
.vc-list { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow: auto; }
.vc-u { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font: inherit; }
.vc-u:hover { border-color: var(--pri); }
.plat-t input[type=text] { min-width: 140px; }
.plat-t td:nth-child(3) input { min-width: 280px; }
.r { text-align: right; }
@media (min-width: 861px) { body.side-min .nav .sep { display: none; } }
.modal.wide .modal-b:not(:has(> iframe)) { padding: 18px; overflow: auto; }
input[type=tel], input[type=email] { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; }

/* Vista previa de la apariencia */
.ap-prev { display: grid; grid-template-columns: 180px 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-height: 220px; }
.ap-side { background: var(--p-menu); color: var(--p-txt); padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ap-side img { width: 56px; height: 56px; object-fit: contain; }
.ap-logo { color: #fff; font-weight: 700; font-size: 11px; text-align: center; letter-spacing: .05em; margin-bottom: 8px; }
.ap-logo .d { color: var(--p-det); }
.ap-item { align-self: stretch; padding: 6px 10px; border-radius: 6px; font-size: 13px; }
.ap-item.on { background: color-mix(in srgb, var(--p-acento) 18%, transparent); color: #fff; box-shadow: inset 3px 0 0 var(--p-acento); }
.ap-body { background: var(--p-fondo); padding: 16px; }
.ap-h { font-weight: 700; font-size: 18px; margin-bottom: 10px; color: var(--ink); }
.ap-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: flex; align-items: center; gap: 14px; }
.ap-btn { background: var(--p-acento); color: var(--p-btn); padding: 7px 12px; border-radius: 6px; font-weight: 600; font-size: 13px; }
.ap-sw { width: 36px; height: 20px; border-radius: 20px; background: var(--p-acento); position: relative; }
.ap-sw::after { content: ''; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }

iframe.emb { display: block; width: 100%; height: calc(100vh - 110px); min-height: 520px; border: 1px solid var(--line); border-radius: 10px; background: #f3f2ee; }

/* Ventanas (modales): encabezado y botones siempre a la vista; solo el contenido se desliza.
   En celular salen desde abajo y la página de atrás no se mueve. */
body.con-modal { overflow: hidden; }
.modal-bg { height: 100vh; height: 100dvh; overscroll-behavior: contain; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
.modal { display: flex; flex-direction: column; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: hidden; }
.modal-h, .modal-f { flex: none; }
.modal-b { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal.wide { height: calc(100vh - 32px); height: calc(100dvh - 32px); }
.modal.wide .modal-b:has(> iframe) { overflow: hidden; }
@media (max-width: 640px) {
  .modal-bg { padding: 0; place-items: end stretch; }
  .modal, .modal.wide { max-width: none; width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: 16px 16px 0 0; }
  .modal.wide { height: 94vh; height: 94dvh; }
  .modal-b { padding: 14px; }
  .modal-f { padding: 10px 14px max(10px, env(safe-area-inset-bottom)); }
  .modal-f .btn { flex: 1 1 auto; justify-content: center; }
}
.check input[type=checkbox], .check input[type=radio] { flex: none; }
