/* Fase 5: guía corta por rol («Cómo usar la demo»), sobre el patrón de hoja de confirmación. */
#p3-guide{display:none}
#p3-guide[hidden]{display:none!important}
#p3-guide.is-open{display:block}
.p3g-scrim{position:fixed;inset:0;z-index:50;background:rgba(5,34,58,.4);display:flex;align-items:flex-end;justify-content:center;padding:0;box-sizing:border-box}
.p3g-sheet{width:min(100%,420px);max-height:min(90vh,760px);overflow:auto;background:#fafcfd;border-radius:20px 20px 0 0;padding:22px 18px calc(22px + env(safe-area-inset-bottom,0px));box-sizing:border-box;box-shadow:0 -8px 30px rgba(5,34,58,.12);color:var(--navy,#05223a)}
.p3g-sheet h2{margin:0 0 4px;font:800 22px/1.25 Inter,system-ui,sans-serif;color:#05223a}
.p3g-sheet .lead{margin:0 0 16px;font:500 14px/1.45 Inter,system-ui,sans-serif;color:#3b5368}
.p3g-role{margin:0 0 14px;font:700 12px/1.2 Inter,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--teal-text,#007883)}
.p3g-steps{list-style:none;margin:0;padding:0}
.p3g-step{display:flex;align-items:center;gap:12px;width:100%;max-width:100%;box-sizing:border-box;margin:0 0 8px;padding:12px 14px;border:1px solid var(--line,#d7e0e6);border-radius:16px;background:#fff;color:var(--navy,#05223a);font:600 15px/1.4 Inter,system-ui,sans-serif;text-align:left;cursor:pointer}
.p3g-step b{flex:none;width:28px;height:28px;border-radius:999px;background:#e6f5f6;color:var(--teal-text,#007883);display:inline-flex;align-items:center;justify-content:center;font:700 13px Inter,system-ui,sans-serif}
.p3g-step span{flex:1;min-width:0}
.p3g-step .chev{flex:none;width:18px;height:18px;stroke:var(--teal-text,#007883);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.p3g-sheet .p3s-pill{display:flex;align-items:center;justify-content:center;width:100%;max-width:100%;box-sizing:border-box;min-height:48px;margin:16px 0 0;padding:0 18px;border:0;border-radius:999px;background:var(--teal,#008d9b);color:#fff;font:700 16px Inter,system-ui,sans-serif;cursor:pointer}
.p3g-help{flex:none;width:48px;height:48px;min-width:48px;min-height:48px;margin:0;padding:0;border:1px solid var(--line,#d7e0e6);border-radius:999px;background:#fff;color:var(--teal-text,#007883);font:800 18px/1 Inter,system-ui,sans-serif;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
.p3g-help svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.p3-head-actions{display:flex;align-items:center;gap:8px;flex:none;margin-left:auto}
.p3-head-actions > button,.p3-head-actions .p3g-help,.p3-head-actions .p3-avatar,.p3-head-actions #reload{margin:0;width:48px;height:48px;min-width:48px;min-height:48px;padding:0;flex:none;box-sizing:border-box;border-radius:999px}
.p3-head .p3g-help,.p3s-head .p3g-help,.p3as-head .p3g-help,.p3inv-head .p3g-help,.p3mod-head .p3g-help,.acct-head-tools .p3g-help{margin-left:0}
.p3-head:not(:has(.p3-head-actions)) .p3g-help,.p3s-head:not(:has(.p3-head-actions)) .p3g-help,.p3as-head:not(:has(.p3-head-actions)) .p3g-help,.p3inv-head:not(:has(.p3-head-actions)) .p3g-help,.p3mod-head:not(:has(.p3-head-actions)) .p3g-help{margin-left:auto}
.p3-head,.p3s-head,.p3as-head,.p3inv-head,.p3mod-head,#account-screen .head{align-items:flex-start}
@media (min-width:900px){
  .p3g-scrim{align-items:center;padding:24px}
  .p3g-sheet{border-radius:20px;width:min(100%,480px);padding:28px 24px;max-height:min(86vh,720px)}
}

/* app.css pone button:hover en navy; se mantiene el texto visible. */
.p3g-step:hover,.p3g-step:focus,.p3g-step:focus-visible{
  background:#e6f5f6;border-color:var(--teal,#008d9b);color:var(--navy,#05223a);
}
.p3g-step:focus-visible{box-shadow:0 0 0 3px rgba(0,141,155,.28);outline:none}
#p3-guide .p3s-pill:hover,#p3-guide .p3s-pill:focus{background:var(--teal,#008d9b);color:#fff;border:0}
.p3g-help:hover,.p3g-help:focus{background:#fff;border-color:var(--teal,#008d9b);color:var(--teal-text,#007883)}
.p3g-help:focus-visible{box-shadow:0 0 0 3px rgba(0,141,155,.28);outline:none}

/* Cerrar siempre visible arriba de la hoja (48 px), también si la lista es larga. */
.p3g-sheet-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;position:sticky;top:0;z-index:1;background:#fafcfd;padding:0 0 4px}
.p3g-sheet-bar .p3g-role{margin:0;min-width:0}
.p3g-close{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:48px;min-width:48px;margin:0 0 0 auto;padding:0 12px;border:1px solid var(--line,#d7e0e6);border-radius:14px;background:#fff;color:var(--navy,#05223a);font:700 14px/1.2 Inter,system-ui,sans-serif;cursor:pointer;flex:none;box-sizing:border-box}
.p3g-close svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.p3g-close:hover,.p3g-close:focus{background:#fff;border-color:var(--teal,#008d9b);color:var(--navy,#05223a)}
.p3g-close:focus-visible{box-shadow:0 0 0 3px rgba(0,141,155,.28);outline:none}
