/* Aurora BPM Manual · visual layer v13
   Static stylesheet required by Aurora CSP (style-src 'self'). */

.abpm12{
  --bpm-navy:var(--navy,#071f46);
  --bpm-indigo:var(--indigo,#4f46e5);
  --bpm-violet:var(--violet,#7c3aed);
  --bpm-bg:var(--bg,#f3f6fb);
  --bpm-surface:var(--surface,#fff);
  --bpm-text:var(--text,#172033);
  --bpm-muted:var(--muted,#667085);
  --bpm-line:var(--line,#dfe5ee);
  max-width:1460px;
  margin:0 auto;
  padding:0 0 64px;
  color:var(--bpm-text);
}
.abpm12 *{box-sizing:border-box}

/* Document identity */
.abpm12 .mast{
  position:relative;
  overflow:hidden;
  display:grid;
  gap:8px;
  margin:0 0 14px;
  padding:26px 30px 25px;
  background:linear-gradient(135deg,#ffffff 0%,#fbfcff 68%,#f1efff 100%);
  border:1px solid var(--bpm-line);
  border-radius:20px;
  box-shadow:0 12px 34px rgba(15,31,63,.06);
}
.abpm12 .mast::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  background:linear-gradient(180deg,var(--bpm-indigo),var(--bpm-violet));
}
.abpm12 .mast::after{
  content:"BPM";
  position:absolute;
  right:26px;
  top:17px;
  font-size:72px;
  line-height:1;
  font-weight:950;
  letter-spacing:-.06em;
  color:rgba(79,70,229,.045);
  pointer-events:none;
}
.abpm12 .mast .eyebrow{
  position:relative;
  z-index:1;
  font-size:.69rem;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:#5b55cc;
}
.abpm12 .mast h1{
  position:relative;
  z-index:1;
  max-width:920px;
  margin:2px 0 3px;
  color:var(--bpm-navy);
  font-size:clamp(1.8rem,2.5vw,2.55rem);
  line-height:1.12;
  letter-spacing:-.025em;
}
.abpm12 .mast p{
  position:relative;
  z-index:1;
  max-width:900px;
  margin:0;
  color:var(--bpm-muted);
  line-height:1.6;
  font-size:.92rem;
}
.abpm12 .mast .release{
  position:relative;
  z-index:1;
  justify-self:start;
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-top:7px;
  padding:7px 10px;
  background:#eef2ff;
  border:1px solid #d7dcff;
  border-radius:999px;
  color:#4338ca;
  font-size:.72rem;
  font-weight:900;
}
.abpm12 .mast .release::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 3px rgba(34,197,94,.12);
}

/* Status note */
.abpm12 .status{
  position:relative;
  margin:0 0 14px;
  padding:13px 16px 13px 45px;
  background:#fffbeb;
  border:1px solid #fde7a9;
  border-radius:14px;
  color:#6b4b12;
  font-size:.83rem;
  line-height:1.55;
}
.abpm12 .status::before{
  content:"i";
  position:absolute;
  left:15px;
  top:13px;
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#f59e0b;
  color:#fff;
  font-size:.72rem;
  font-weight:900;
  font-family:Georgia,serif;
}
.abpm12 .status strong{color:#7c4a03}

/* Toolbar: explicitly neutralize global .topbar */
.abpm12 .topbar{
  position:sticky !important;
  top:calc(var(--topbar,70px) + 10px) !important;
  left:auto !important;
  right:auto !important;
  z-index:32 !important;
  width:auto !important;
  height:auto !important;
  min-height:0 !important;
  display:grid !important;
  grid-template-columns:minmax(230px,1fr) auto auto auto;
  align-items:center;
  gap:9px !important;
  margin:0 0 18px;
  padding:10px !important;
  background:rgba(255,255,255,.94) !important;
  border:1px solid var(--bpm-line) !important;
  border-radius:16px !important;
  box-shadow:0 10px 30px rgba(15,31,63,.08) !important;
  backdrop-filter:blur(14px);
}
.abpm12 .topbar input{
  width:100%;
  min-width:0;
  height:42px;
  padding:0 13px 0 38px;
  color:var(--bpm-text);
  background:#f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 12px 50%;
  border:1px solid #d9e0ea;
  border-radius:11px;
  outline:none;
  font-size:.84rem;
  transition:.18s;
}
.abpm12 .topbar input:focus{
  background-color:#fff;
  border-color:#818cf8;
  box-shadow:0 0 0 4px rgba(99,102,241,.11);
}
.abpm12 .topbar .btn{
  min-height:42px;
  white-space:nowrap;
  padding:10px 14px;
  border-radius:11px;
  font-size:.8rem;
}
.abpm12 .saved{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  gap:7px;
  min-height:18px;
  padding:0 3px;
  color:#778399;
  font-size:.72rem;
}
.abpm12 .saved::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:#94a3b8;
}

/* Workspace */
.abpm12 .layout{
  display:grid;
  grid-template-columns:minmax(250px,290px) minmax(0,920px);
  justify-content:center;
  gap:22px;
  align-items:start;
}
.abpm12 .layout>main{min-width:0}

/* Table of contents */
.abpm12 .toc{
  position:sticky;
  top:calc(var(--topbar,70px) + 86px);
  max-height:calc(100vh - var(--topbar,70px) - 108px);
  overflow:auto;
  padding:8px;
  background:#fff;
  border:1px solid var(--bpm-line);
  border-radius:17px;
  box-shadow:0 8px 24px rgba(15,31,63,.045);
  scrollbar-width:thin;
  scrollbar-color:#cbd5e1 transparent;
}
.abpm12 .toc-title{
  position:sticky;
  top:0;
  z-index:2;
  margin:0 0 4px;
  padding:10px 10px 11px;
  background:#fff;
  border-bottom:1px solid #eef2f6;
  color:#667085;
  font-size:.66rem;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.abpm12 .toc button{
  width:100%;
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin:2px 0;
  padding:9px 10px;
  border:1px solid transparent;
  border-radius:11px;
  background:transparent;
  color:#44536a;
  text-align:left;
  font-size:.78rem;
  line-height:1.35;
  transition:.16s;
}
.abpm12 .toc button strong{
  flex:0 0 27px;
  display:grid;
  place-items:center;
  min-height:24px;
  margin-top:-2px;
  border-radius:8px;
  background:#f1f5f9;
  color:#65748b;
  font-size:.68rem;
  font-weight:900;
}
.abpm12 .toc button:hover{
  background:#f8fafc;
  border-color:#e7ebf1;
  color:#263b59;
}
.abpm12 .toc button.active{
  background:linear-gradient(135deg,#eef2ff,#f7f5ff);
  border-color:#d8d8ff;
  color:#3730a3;
  font-weight:800;
}
.abpm12 .toc button.active strong{
  background:linear-gradient(135deg,var(--bpm-indigo),var(--bpm-violet));
  color:#fff;
  box-shadow:0 5px 12px rgba(79,70,229,.18);
}
.abpm12 .search-hidden{display:none!important}

/* The document itself */
.abpm12 .paper,
.abpm12 .editbox{
  width:100%;
  min-width:0;
  background:#fff;
  border:1px solid var(--bpm-line);
  border-radius:18px;
  box-shadow:0 18px 48px rgba(15,31,63,.075);
}
.abpm12 .paper{
  position:relative;
  min-height:920px;
  padding:52px 60px 44px;
}
.abpm12 .paper::before{
  content:"AURORA STANDARDS  ·  SISTEMA DOCUMENTAL BPM";
  display:block;
  margin:0 0 32px;
  padding:0 0 13px;
  border-bottom:1px solid #e9edf3;
  color:#8a97aa;
  font-size:.61rem;
  font-weight:900;
  letter-spacing:.14em;
}
.abpm12 .chapter-no{
  color:#6256d9;
  font-size:.69rem;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.abpm12 .paper h2,
.abpm12 .editbox h2{
  margin:7px 0 7px;
  color:var(--bpm-navy);
  font-size:clamp(1.7rem,2vw,2.2rem);
  line-height:1.18;
  letter-spacing:-.022em;
}
.abpm12 .code{
  display:inline-flex;
  align-items:center;
  margin:2px 0 30px;
  padding:5px 9px;
  background:#f8fafc;
  border:1px solid #e7ebf1;
  border-radius:8px;
  color:#69778b;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.7rem;
}
.abpm12 .section{
  padding:22px 0;
  border-top:1px solid #edf1f5;
}
.abpm12 .section:first-of-type{border-top:0;padding-top:0}
.abpm12 .section h3{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 0 12px;
  color:#173765;
  font-size:1.02rem;
  line-height:1.3;
}
.abpm12 .section h3::before{
  content:"";
  width:4px;
  height:18px;
  border-radius:999px;
  background:linear-gradient(180deg,var(--bpm-indigo),var(--bpm-violet));
}
.abpm12 .section p{
  max-width:76ch;
  margin:0 0 13px;
  color:#37475d;
  font-size:.9rem;
  line-height:1.75;
}
.abpm12 .section ul,
.abpm12 .section ol{
  margin:9px 0 0;
  padding-left:23px;
  color:#37475d;
}
.abpm12 .section li{
  margin:8px 0;
  padding-left:3px;
  font-size:.88rem;
  line-height:1.62;
}
.abpm12 .section li::marker{color:#655bd4;font-weight:800}
.abpm12 .callout{
  margin-top:3px;
  padding:15px 17px;
  background:linear-gradient(135deg,#f7f8ff,#fafbff);
  border:1px solid #e4e3ff;
  border-left:4px solid #6d5ce7;
  border-radius:11px;
}
.abpm12 .callout p:last-child{margin-bottom:0}

.abpm12 .role-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.abpm12 .role-card{
  padding:14px 15px;
  background:#fbfcfe;
  border:1px solid #e4e9f0;
  border-radius:12px;
}
.abpm12 .role-card strong{
  display:block;
  margin-bottom:7px;
  color:#253a58;
  font-size:.82rem;
}
.abpm12 .role-card ul{margin-top:4px}

/* Tables */
.abpm12 table{
  width:100%;
  margin-top:10px;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid #dfe5ee;
  border-radius:12px;
  font-size:.77rem;
}
.abpm12 th,
.abpm12 td{
  padding:11px 12px;
  border:0;
  border-bottom:1px solid #e8edf3;
  border-right:1px solid #e8edf3;
  text-align:left;
  vertical-align:top;
  line-height:1.5;
}
.abpm12 th:last-child,
.abpm12 td:last-child{border-right:0}
.abpm12 tr:last-child td{border-bottom:0}
.abpm12 th{
  background:#f7f9fc;
  color:#536176;
  font-size:.66rem;
  font-weight:900;
  letter-spacing:.045em;
  text-transform:uppercase;
}
.abpm12 tbody tr:hover td{background:#fcfdff}

/* Bottom navigation */
.abpm12 .navbottom{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:34px;
  padding-top:20px;
  border-top:1px solid #e7ebf1;
}
.abpm12 .navbottom .btn{font-size:.79rem}

/* Editing is deliberately a separate state */
.abpm12 .editbox{
  display:none;
  padding:38px 42px 34px;
}
.abpm12.editing .paper{display:none}
.abpm12.editing .editbox{display:block}
.abpm12 .editbox::before{
  content:"EDICIÓN DE CONTENIDO · BORRADOR LOCAL";
  display:block;
  margin:0 0 22px;
  padding:0 0 12px;
  border-bottom:1px solid #e9edf3;
  color:#8a97aa;
  font-size:.62rem;
  font-weight:900;
  letter-spacing:.13em;
}
.abpm12 .editnote{
  margin:15px 0 22px;
  padding:13px 15px;
  background:#eff6ff;
  border:1px solid #cfe3fb;
  border-radius:12px;
  color:#315173;
  font-size:.82rem;
  line-height:1.55;
}
.abpm12 .field{margin:19px 0}
.abpm12 .field label{
  display:block;
  margin:0 0 7px;
  color:#2c405d;
  font-size:.8rem;
  font-weight:900;
}
.abpm12 .field small{
  display:block;
  margin:-2px 0 8px;
  color:#7a8799;
  font-size:.71rem;
}
.abpm12 .field textarea,
.abpm12 .field input{
  width:100%;
  padding:13px 14px;
  background:#fff;
  border:1px solid #cfd8e5;
  border-radius:11px;
  outline:none;
  color:#283950;
  font:inherit;
  font-size:.86rem;
  line-height:1.55;
  transition:.18s;
}
.abpm12 .field textarea{min-height:128px;resize:vertical}
.abpm12 .field textarea.long{min-height:215px}
.abpm12 .field textarea:focus,
.abpm12 .field input:focus{
  border-color:#818cf8;
  box-shadow:0 0 0 4px rgba(99,102,241,.11);
}
.abpm12 .edit-actions{
  position:sticky;
  bottom:10px;
  z-index:5;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:26px;
  padding:13px;
  background:rgba(255,255,255,.95);
  border:1px solid #e1e7ef;
  border-radius:14px;
  box-shadow:0 10px 28px rgba(15,31,63,.09);
  backdrop-filter:blur(10px);
}
.abpm12 .muted{color:#718096}
.abpm12 .empty{color:#8a96a8;font-style:italic}

/* Responsive */
@media(max-width:1180px){
  .abpm12 .layout{grid-template-columns:250px minmax(0,1fr)}
  .abpm12 .paper{padding:44px 42px 38px}
}
@media(max-width:960px){
  .abpm12 .topbar{
    position:static !important;
    grid-template-columns:1fr 1fr !important;
  }
  .abpm12 .topbar input{grid-column:1/-1}
  .abpm12 .topbar .btn{width:100%}
  .abpm12 .layout{grid-template-columns:1fr}
  .abpm12 .toc{
    position:static;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    max-height:320px;
    gap:2px;
  }
  .abpm12 .toc-title{grid-column:1/-1}
  .abpm12 .paper{min-height:auto;padding:36px 30px}
}
@media(max-width:620px){
  .abpm12 .mast{padding:22px 20px}
  .abpm12 .mast::after{display:none}
  .abpm12 .topbar{grid-template-columns:1fr !important}
  .abpm12 .topbar input,.abpm12 .saved{grid-column:1}
  .abpm12 .toc{grid-template-columns:1fr}
  .abpm12 .paper,.abpm12 .editbox{padding:28px 20px}
  .abpm12 .role-grid{grid-template-columns:1fr}
  .abpm12 .navbottom{flex-direction:column}
  .abpm12 .navbottom .btn{width:100%}
}

/* Printing / client PDF */
@page{size:Letter;margin:16mm 17mm}
@media print{
  body{background:#fff !important}
  .sidebar,.topbar>.brand-lockup,.topbar-context,.avatar-button,.mobile-menu{display:none!important}
  .main{margin:0!important;padding:0!important}
  .abpm12{max-width:none;padding:0;color:#111}
  .abpm12>.mast,.abpm12>.status,.abpm12>.topbar,.abpm12 .toc,.abpm12 .navbottom{display:none!important}
  .abpm12 .layout{display:block}
  .abpm12 .paper{display:block!important;min-height:0;padding:0;border:0;border-radius:0;box-shadow:none}
  .abpm12 .paper::before{margin-bottom:22px;color:#555}
  .abpm12 .section{break-inside:auto}
  .abpm12 table,.abpm12 .role-card,.abpm12 .callout{break-inside:avoid}
  .abpm12 .section h3{break-after:avoid}
  .abpm12 .editbox{display:none!important}
}
