/* Estética del frontal OPMas / OPMas (aplicación web moderna) */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", "OPMas Book", Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #121212;
  background: #fff;
}

a { color: #2f6f9f; }

/* ------------------------------------------------------------- cabecera */
.opmas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  border-bottom: 1px solid #e9e9e9;
  background: #fff;
}

.opmas-logo {
  font-size: 22px;
  font-weight: 700;
  color: #1c3557;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.opmas-logo .tick { color: #5ba99b; margin-left: 2px; }
.opmas-logo .stage {
  font-weight: 400;
  font-size: 15px;
  color: #1c3557;
  margin-left: 18px;
  vertical-align: 3px;
}

.opmas-user {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #666;
}
.opmas-user b { color: #1c3557; font-weight: 600; }
.opmas-user .sep { color: #ccc; }
.opmas-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid #ccc;
  display: inline-flex; align-items: center; justify-content: center;
  color: #2f6f9f; font-size: 12px; text-decoration: none;
}

/* ---------------------------------------------------------------- grid */
.opmas-main { padding: 26px 22px 60px; max-width: 1180px; }

.opmas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}
.opmas-grid.robots { grid-template-columns: repeat(2, 1fr); }

.opmas-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #22456e;
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 16px 18px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background .12s ease-in-out;
  text-align: left;
  width: 100%;
  font-family: inherit;
}
.opmas-card:hover { background: #1c3557; }
.opmas-card:focus-visible { outline: 2px solid #5ba99b; outline-offset: 2px; }
.opmas-card .ic {
  width: 22px; height: 22px; flex: 0 0 22px;
  border: 1.5px solid #fff; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.opmas-grid.robots .opmas-card { padding: 22px 18px; font-size: 15px; }

/* -------------------------------------------------------------- buscador */
.opmas-search { display: flex; gap: 8px; align-items: stretch; max-width: 900px; }
.opmas-search select,
.opmas-search input {
  border: 1px solid #d3d3d3;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
}
.opmas-search select { width: 170px; }
.opmas-search input { flex: 1; }
.opmas-search button {
  background: #2f6f9f; color: #fff; border: 0; padding: 8px 26px;
  font-size: 13px; cursor: pointer; font-family: inherit;
}
.opmas-links { margin-top: 10px; font-size: 12px; }
.opmas-links a { margin-right: 22px; text-decoration: none; }
.opmas-links a::before { content: "\2727\00a0"; }

/* ---------------------------------------------------------------- drawer */
.stage {
  display: none;
  position: fixed;
  inset: 62px 0 0 0;
  background: rgba(4, 50, 99, .96);
  z-index: 40;
}
.stage:target,
.stage.abierto { display: block; }

.stage-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 62%;
  min-width: 520px;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 26px 30px;
  overflow: auto;
}
.stage-panel h2 {
  margin: 0 0 18px;
  font-size: 22px;
  color: #1c3557;
  font-weight: 600;
}
.stage-cols { display: grid; grid-template-columns: 240px 1fr; gap: 30px; }
.stage-cols ul { list-style: none; margin: 0; padding: 0; }
.stage-cols li { margin-bottom: 12px; }
.stage-cols a { color: #2f6f9f; text-decoration: none; font-size: 13px; }
.stage-cols a:hover { text-decoration: underline; }
.stage-cols .num { color: #2f6f9f; }
.stage-cols .num.activo { font-weight: 700; }
.stage-cols .flecha::after { content: " \2192"; }
.stage-close {
  position: absolute; top: 14px; right: 20px;
  background: none; border: 0; font-size: 20px; color: #666; cursor: pointer;
}
.stage-back {
  position: absolute; top: 45%; left: 3%;
  color: #fff; font-size: 34px; text-decoration: none;
}

/* ----------------------------------------------------------------- login */
body.login { background: #f4f4f4; }
.login-box {
  width: 520px;
  margin: 60px auto;
  background: #fff;
  border: 1px solid #ddd;
}
.login-head {
  background: #24507e;
  color: #fff;
  text-align: center;
  padding: 26px 0 22px;
}
.login-head .marca { font-size: 34px; font-weight: 700; letter-spacing: 2px; }
.login-head .sub { font-size: 20px; margin-top: 10px; font-weight: 300; }
.login-body { padding: 34px 60px 40px; text-align: center; }
.candado { font-size: 40px; color: #d94040; }
.puntos { background: #5ba99b; color: #fff; letter-spacing: 6px; padding: 4px 16px; display: inline-block; }
.login-body input[type=text],
.login-body input[type=password] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #ccc;
  padding: 12px 4px;
  font-size: 14px;
  font-family: inherit;
  text-align: center;
  color: #666;
  outline: none;
}
.login-body input:focus { border-bottom-color: #2f6f9f; }
.login-body .olvido { display: block; margin: 22px 0; font-size: 13px; color: #2f6f9f; text-decoration: none; }
.login-body button {
  width: 100%;
  background: #24507e;
  color: #fff;
  border: 0;
  padding: 14px;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
}
.login-error {
  background: #fdecea;
  border: 1px solid #e6a8a1;
  color: #a8332a;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 18px;
  text-align: left;
}
.login-pistas { max-width: 520px; margin: 0 auto; font-size: 12px; color: #777; text-align: center; }
.login-pistas code { background: #eee; padding: 1px 5px; }

/* ------------------------------------------------------------------ admin */
.admin { padding: 24px; max-width: 1180px; margin: 0 auto; }
.admin h1 { color: #1c3557; font-size: 22px; }
.admin table { border-collapse: collapse; width: 100%; font-size: 12px; margin-bottom: 26px; }
.admin th, .admin td { border: 1px solid #e0e0e0; padding: 5px 8px; text-align: left; }
.admin th { background: #eef3f9; color: #1c3557; }
.admin h2 { color: #1c3557; font-size: 16px; margin-top: 28px; }
.admin .ok { color: #1a7f37; font-weight: 600; }
.admin .ko { color: #b3261e; font-weight: 600; }
.admin td.num { text-align: right; white-space: nowrap; }
.admin code { font-size: 11px; }
.admin pre { background: #f6f8fa; padding: 12px; font-size: 12px; overflow: auto; }
.admin .botonera { display: flex; gap: 10px; margin: 18px 0 6px; }
.admin button {
  background: #2f6f9f; color: #fff; border: 0; padding: 8px 18px; cursor: pointer; font-family: inherit;
}
.admin button.secundario { background: #fff; color: #2f6f9f; border: 1px solid #2f6f9f; }
.admin .aviso {
  background: #eaf5ee; border: 1px solid #9fcfb2; color: #1a7f37;
  padding: 10px 14px; font-size: 13px; margin: 14px 0;
}
