/* Vista online del cliente (encargo 07). Mockup 08: misma tipografía y colores del CRM, con la marca de la empresa. */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { --marca: #1d4f91; display: flex; flex-direction: column; min-height: 100dvh; background: #eef1f4; color: #15212b;
  font: 14px/1.5 'IBM Plex Sans', ui-sans-serif, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: #0a6357; }
.pt-top { padding: 16px 18px; background: #fff; border-bottom: 1px solid #e1e6eb; }
.pt-brand { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pt-brand > span:first-child { min-width: 0; }
.pt-sub { font-size: 12.5px; color: #5b6873; }
.pt-top h1 { margin: 12px 0 2px; font-size: 21px; font-weight: 600; }
.pt-top h1:empty { display: none; }
.pt-top p { margin: 0; font-size: 13.5px; color: #4a5864; }
.pt-main { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 720px; margin: 0 auto; }
.pt-tabs { display: flex; gap: 8px; }
.pt-tabs button { border: 1px solid #cfd7de; background: #fff; color: #4a5864; border-radius: 99px; padding: 0 14px; min-height: 44px; font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.pt-tabs button[aria-pressed="true"] { border-color: #15212b; background: #15212b; color: #fff; }
.pt-card { display: block; text-decoration: none; color: #15212b; background: #fff; border: 1px solid #e1e6eb; border-radius: 12px; padding: 14px 16px; }
.pt-card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pt-num { font-size: 12.5px; color: #5b6873; font-variant-numeric: tabular-nums; }
.pt-title { display: block; font-size: 15px; font-weight: 600; margin-top: 6px; line-height: 1.35; }
.pt-ctx { display: block; font-size: 12.5px; color: #5b6873; margin-top: 4px; }
.pt-badge { display: inline-flex; font-size: 11.5px; font-weight: 500; line-height: 1.6; padding: 0 7px; border-radius: 4px; white-space: nowrap; background: #e2f2ee; color: #0a6357; }
.pt-badge.en_curso { background: #e4edf8; color: #1d4f91; }
.pt-badge.esperando { background: #fdf0dc; color: #8a4b00; }
.pt-badge.resuelto { background: #e3f3e9; color: #1b7a43; }
.pt-badge.cerrado { background: #eceff2; color: #4a5864; }
.pt-note { margin: 4px 2px 0; font-size: 12.5px; color: #5b6873; }
.pt-foot { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e1e6eb; }
.pt-primary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 688px; margin: 0 auto; border: 0; background: var(--marca); color: #fff;
  padding: 12px; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; min-height: 48px; }
.pt-form { display: grid; gap: 12px; background: #fff; border: 1px solid #e1e6eb; border-radius: 12px; padding: 16px; }
.pt-form label { display: grid; gap: 4px; font-size: 13px; color: #4a5864; }
.pt-form input, .pt-form textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #cfd7de; border-radius: 8px; background: #fff; color: #15212b; }
.pt-form textarea { min-height: 140px; resize: vertical; }
.pt-msg { background: #fff; border: 1px solid #e1e6eb; border-radius: 12px; padding: 12px 14px; }
.pt-msg.support { border-left: 3px solid var(--marca); }
.pt-msg-h { font-size: 12.5px; color: #5b6873; margin-bottom: 4px; }
.pt-msg-b { white-space: pre-wrap; overflow-wrap: anywhere; }
.pt-back { align-self: flex-start; background: none; border: 0; color: #0a6357; font: inherit; padding: 8px 0; min-height: 44px; cursor: pointer; }
.pt-link { background: none; border: 0; color: #0a6357; font: inherit; font-size: 12.5px; padding: 8px 0; cursor: pointer; text-decoration: underline; }
.pt-error { color: #b42318; }
.pt-alert { border-color: #f3c98b; background: #fffaf1; display: grid; gap: 4px; }
.pt-secondary { justify-self: start; margin-top: 6px; min-height: 44px; padding: 0 14px; border: 1px solid #cfd7de; border-radius: 10px; background: #fff; color: #15212b; font: inherit; font-weight: 600; cursor: pointer; }
/* Encargo 21: logo, pie y contacto de la empresa del dominio */
.pt-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 16px; font-weight: 700; color: var(--marca); }
.pt-name img { display: block; max-height: 32px; max-width: 180px; object-fit: contain; }
.pt-name img[hidden], .pt-name span[hidden] { display: none; }
.pt-legal { width: 100%; max-width: 720px; margin: 0 auto; padding: 4px 18px 16px; font-size: 12px; color: #5b6873; }
.pt-legal p { margin: 2px 0; white-space: pre-line; overflow-wrap: anywhere; }
.pt-legal p:empty { display: none; }
